]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/empty-function.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / empty-function.js
1 function foo() { }
2
3 noInline(foo);
4
5 for (var i = 0; i < 100000; ++i) {
6 var result = foo();
7 if (result !== void 0)
8 throw "You broke JSC so hard that even the empty function doesn't work: " + result;
9 }
10