Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
stress
/
object-is-extensible-accept-non-object.js
blob: 44c371da62538b6d373cad0e104a1571d20c6ab7 [
file
] [
log
] [
blame
]
var
primitives
=
[
"string"
,
42
,
null
,
undefined
,
Symbol
(
"symbol"
),
true
,
false
];
for
(
var
primitive of primitives
)
{
var
ret
=
Object
.
isExtensible
(
primitive
);
if
(
ret
!==
false
)
throw
new
Error
(
"bad value: "
+
String
(
ret
));
}