summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/object-create-with-primitive-second-arg-in-ion.js
blob: a4c6d40da9c85a02530e5c22ce65b955375c8167 (plain)
1
2
3
4
5
6
7
8
// |jit-test| --ion-eager
load(libdir + "asserts.js");

[1, "", true, Symbol(), undefined].forEach(props => {
    assertEq(Object.getPrototypeOf(Object.create(null, props)), null);
});

assertThrowsInstanceOf(() => Object.create(null, null), TypeError);