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