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