Debian Codegraph @

js/src/jit-test/tests/ion/object-create-with-primitive-second-arg-in-ion.js

raw
1 // |jit-test| --ion-eager
2 load(libdir + "asserts.js");
3
4 [1, "", true, Symbol(), undefined].forEach(props => {
5 assertEq(Object.getPrototypeOf(Object.create(null, props)), null);
6 });
7
8 assertThrowsInstanceOf(() => Object.create(null, null), TypeError);