16 lines
371 B
JavaScript
16 lines
371 B
JavaScript
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
|
|
function foo(a, b) {
|
|
var result;
|
|
for (var i = 0; i < 10000; ++i)
|
|
result = a + b;
|
|
return result;
|
|
}
|
|
|
|
noInline(foo);
|
|
|
|
for (var i = 0; i < 500; ++i) {
|
|
var result = foo("hello ", "world!");
|
|
if (result != "hello world!")
|
|
throw "Error: bad result: " + result;
|
|
}
|