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