Sign in
webkit
/
WebKit
/
19670883496d71d843288b4fcbca292a5e418f2e
/
.
/
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
;