blob: 3b303c18b596a98dd5ee9a0f4b9fd734df4a84f1 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var re = /foo/g;
var n = 10000000;
for (var i = 0; i < n; ++i)
re.lastIndex = 5;
re.exec("foo bar foo");
if (re.lastIndex != "foo bar foo".length)
throw "Error: bad value of lastIndx: " + re.lastIndex;
})();