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