summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/environments/1890252.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/environments/1890252.js')
-rw-r--r--js/src/jit-test/tests/environments/1890252.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/environments/1890252.js b/js/src/jit-test/tests/environments/1890252.js
new file mode 100644
index 0000000000..b44ca2253f
--- /dev/null
+++ b/js/src/jit-test/tests/environments/1890252.js
@@ -0,0 +1,15 @@
+// |jit-test| --more-compartments
+
+var threw = false;
+try {
+ const v2 = evalcx("lazy");
+ const o4 = {
+ "global": v2,
+ };
+ o4.envChainObject = v2;
+ evaluate("{ let eval = parseInt; eval()}", o4);
+} catch (e) {
+ threw = true;
+ assertEq(e.toString().includes("envChainObject"), true);
+}
+assertEq(threw, true);