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