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