]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/make-rope-3.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / make-rope-3.js
1 function foo(x) {
2 return "hello" + x + "!!";
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 100000; ++i) {
8 var result = foo(" world");
9 if (typeof result != "string") {
10 describe(result);
11 throw "Error: bad result type: " + result;
12 }
13 if (result != "hello world!!")
14 throw "Error: bad result: " + result;
15 }
16