diff options
Diffstat (limited to 'js/src/jit-test/tests/environments/lexical-shadows-global-var.js')
-rw-r--r-- | js/src/jit-test/tests/environments/lexical-shadows-global-var.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/environments/lexical-shadows-global-var.js b/js/src/jit-test/tests/environments/lexical-shadows-global-var.js new file mode 100644 index 0000000000..9a8a8792b6 --- /dev/null +++ b/js/src/jit-test/tests/environments/lexical-shadows-global-var.js @@ -0,0 +1,9 @@ +this.x = "OK"; + +for (var i = 0; i < 50; i++) { + assertEq(x, "OK"); + if (i === 40) { + this.x = "FAIL"; + evaluate("let x = 'OK';"); + } +} |