summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/object/object-create-with-primitive-second-arg.js
blob: 44afd53c25620340324d0332974387f32fa6951f (plain)
1
2
3
4
5
6
7
8
[1, "", true, Symbol(), undefined].forEach(props => {
    assertEq(Object.getPrototypeOf(Object.create(null, props)), null);
});

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

if (typeof reportCompare === "function")
    reportCompare(true, true);