Sign in
webkit
/
WebKit
/
5969b6f1f74632b1546edb27bd956b187c2c3d52
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-arrayify-when-prevent-extensions.js
blob: de0199d7c09791dd8f3aad409fe7f581f7623d7a [
file
] [
log
] [
blame
]
description
(
"Tests that Arraify does good things when Object.preventExtensions() has been called."
);
function
foo
(
o
)
{
o
[
0
]
=
42
;
return
o
[
0
];
}
dfgShouldBe
(
foo
,
"var o = {}; Object.preventExtensions(o); foo(o)"
,
"void 0"
);