diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testLetOverridingArgs.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testLetOverridingArgs.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testLetOverridingArgs.js b/js/src/jit-test/tests/basic/testLetOverridingArgs.js new file mode 100644 index 000000000..fbebe7a2f --- /dev/null +++ b/js/src/jit-test/tests/basic/testLetOverridingArgs.js @@ -0,0 +1,5 @@ +function f1() { { let arguments = 42; return arguments } } +assertEq(f1(), 42); + +function f2() { { let arguments; return arguments } } +assertEq(f2(), undefined); |