[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / domjit-getter-complex.js
1 var createDOMJITGetterComplexObject = $vm.createDOMJITGetterComplexObject;
2
3 function shouldBe(actual, expected) {
4     if (actual !== expected)
5         throw new Error(`bad value: ${String(actual)}`);
6 }
7
8 var complex = createDOMJITGetterComplexObject();
9 function access(complex)
10 {
11     return complex.customGetter;
12 }
13 noInline(access);
14 for (var i = 0; i < 1e4; ++i) {
15     shouldBe(access(complex), 42);
16 }