Sign in
cobalt
/
cobalt
/
e77c070364e97b7a7deea396227c08805cb9e66d
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
object-create-with-primitive-second-arg-in-ion.js
blob: 05f82eb23d7171a1ae7be5054987c4e1c0720e8f [
file
] [
log
] [
blame
]
// |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
);