|
1 /* vim: set ts=8 sts=4 et sw=4 tw=99: */ |
|
2 function foundit(items, n) { |
|
3 for (var i = 0; i < 10; i++) |
|
4 arguments[2](items, this); |
|
5 } |
|
6 |
|
7 function dostuff() { |
|
8 print(this); |
|
9 } |
|
10 foundit('crab', 'crab', dostuff); |
|
11 |
|
12 /* Don't crash or assert */ |
|
13 |