[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / string-concat-object.js
1 function foo(a) {
2     return "foo" + new String(a) + "bar";
3 }
4
5 var result;
6 for (var i = 0; i < 100000; ++i)
7     result = foo("hello");
8
9 if (result != "foohellobar")
10     throw "Error: bad result: " + result;