Sign in
webkit
/
WebKit
/
f769e514944504ab0f19dbc22e4bc75842cebc49
/
.
/
JSTests
/
stress
/
sparse-define-empty-descriptor.js
blob: 6f9de14e3e25bb275421a48d76f4e44ecb32dfd6 [
file
] [
log
] [
blame
]
var
array
=
[];
array
[
10000000
]
=
42
;
Object
.
defineProperty
(
array
,
10000000
,
{
configurable
:
true
,
enumerable
:
true
,
writable
:
true
});
var
result
=
array
[
10000000
];
if
(
result
!=
42
)
throw
"Error: bad result: "
+
result
;