]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/value-to-int32-undefined.js
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / tests / stress / value-to-int32-undefined.js
CommitLineData
81345200
A
1function foo(a) {
2 return a | 0;
3}
4
5noInline(foo());
6
7for (var i = 0; i < 10000; ++i) {
8 var result = foo(void 0);
9 if (result != 0)
10 throw "Error: bad result: " + result;
11}
12