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