Sign in
webkit
/
WebKit
/
6ada3cd2e0d9b9e450b5e021e0e5526f55f59df8
/
.
/
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
));
}