haikuwebkit/JSTests/stress/put-getter-setter-by-id-str...

14 lines
284 B
JavaScript

"use strict"
let theglobal = 0;
for (theglobal = 0; theglobal < 100000; ++theglobal)
;
const foo = (ignored, arg1) => { theglobal = arg1; };
for (let j = 0; j < 10000; ++j) {
const obj = {
[theglobal]: 0,
set hello(ignored) {}
};
foo(obj, 'hello');
}