msaboff@apple.com | 251f6b5 | 2013-08-29 22:47:20 +0000 | [diff] [blame] | 1 | description( |
2 | "Tests accessing arguments by val where the arguments need to be lazily created doesn't crash - original webkit bug# 120080" | ||||
3 | ); | ||||
4 | |||||
5 | function foo() { | ||||
6 | var r = arguments.length; | ||||
7 | return arguments[0]; | ||||
8 | } | ||||
9 | |||||
10 | for (var i = 0; i < 3000; ++i) { | ||||
11 | result = foo(); | ||||
12 | } | ||||
13 | |||||
14 | testPassed("No crash lazily creating arguments"); | ||||
15 |