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