[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / array-prototype-slow-put-having-a-bad-time-2.js
1 function assert(b) {
2     if (!b)
3         throw new Error;
4 }
5
6 let result;
7 Object.defineProperty(Object.prototype, '1', {
8     get() { return result; },
9     set(x) { result = x; }
10 });
11 Array.prototype.length = 0x10000000;
12 Array.prototype[1] = 42;
13 assert(result === 42);
14 assert(Array.prototype[1] === 42);