]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(array) { |
2 | return [array.pop(), array.pop(), array.pop(), array.pop()]; | |
3 | } | |
4 | ||
5 | noInline(foo); | |
6 | ||
7 | for (var i = 0; i < 100000; ++i) { | |
8 | var result = foo(["foo", "bar", "baz"]); | |
9 | if (result.toString() != "baz,bar,foo,") | |
10 | throw "Error: bad result: " + result; | |
11 | } |