blob: a9feb8a9b5345688bbf92ad093c857bb924651f7 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
// This test branches on the boolean value of a string, which should be fast in the DFG.
function foo(string) {
var bar;
for (var i = 0; i < 10000000; ++i) {
if (string)
bar++;
}
return bar;
}
result = foo('hurr im a string');