diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/arguments/apply-args-obj-04.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arguments/apply-args-obj-04.js b/js/src/jit-test/tests/arguments/apply-args-obj-04.js new file mode 100644 index 0000000000..2a1e8b098e --- /dev/null +++ b/js/src/jit-test/tests/arguments/apply-args-obj-04.js @@ -0,0 +1,21 @@ +var result; + +function g(a, b) { + with ({}) {} + result = a + b; +} + +function escape() { with({}) {} } + +function f() { + escape(arguments); + for (var i = 0; i < 50; ++i) { + g.apply(this, arguments); + } +} + +f(1, 2); +assertEq(result, 3); + +f(""); +assertEq(result, "undefined"); |