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