]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/make-rope-2.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / make-rope-2.js
... / ...
CommitLineData
1function foo(x) {
2 return "hello" + x;
3}
4
5noInline(foo);
6
7for (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