diff options
Diffstat (limited to 'js/vendor/es6-shim/test-sham/set-prototype-of.js')
-rw-r--r-- | js/vendor/es6-shim/test-sham/set-prototype-of.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/js/vendor/es6-shim/test-sham/set-prototype-of.js b/js/vendor/es6-shim/test-sham/set-prototype-of.js deleted file mode 100644 index 80448b3ec..000000000 --- a/js/vendor/es6-shim/test-sham/set-prototype-of.js +++ /dev/null @@ -1,26 +0,0 @@ -/* global expect, describe, it */ - -describe('Object.setPrototypeOf(o, p)', function () { - 'use strict'; - - it('changes prototype to regular objects', function () { - var obj = { a: 123 }; - expect(obj).to.be.an.instanceOf(Object); - // sham requires assignment to work cross browser - obj = Object.setPrototypeOf(obj, null); - expect(obj).not.to.be.an.instanceOf(Object); - expect(obj.a).to.equal(123); - }); - - it('changes prototype to null objects', function () { - var obj = Object.create(null); - obj.a = 456; - expect(obj).not.to.be.an.instanceOf(Object); - expect(obj.a).to.equal(456); - // sham requires assignment to work cross browser - obj = Object.setPrototypeOf(obj, {}); - expect(obj).to.be.an.instanceOf(Object); - expect(obj.a).to.equal(456); - }); - -}); |