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