blob: 5901c0db3cfe504baa43f9204a242797c2d3007a [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
o = RegExp;
j = 0;
l = 2;
z = 0;
function test(o, z) {
var k = arguments[(((j << 1 | l) >> 1) ^ 1) & (z *= 1)];
k.input = 0;
for (var i = 0; i < 25000; i++) {
k.input = "foo";
}
return k.input;
}
var result = test({__proto__: {bar:"wibble", input:"foo"}});
var result = test({input:"foo"});
var result = test(o)
for (var k = 0; k < 6; k++) {
var start = new Date;
var newResult = test(o)
var end = new Date;
if (newResult != result)
throw "Failed at " + k + "with " + newResult + " vs. " + result
result = newResult;
o = {__proto__ : o }
}