Index: test/mjsunit/regress/regress-5736.js |
diff --git a/test/mjsunit/regress/regress-5736.js b/test/mjsunit/regress/regress-5736.js |
index cf934cc9080c356c61664b18fa36b288420583bd..6583da38da85e8977b51921b0a2734348eeb1bd0 100644 |
--- a/test/mjsunit/regress/regress-5736.js |
+++ b/test/mjsunit/regress/regress-5736.js |
@@ -24,3 +24,11 @@ assertEquals(2, my_global); |
eval("let foo = 1; function lazy() { foo = 2; } lazy(); my_global = foo;"); |
assertEquals(my_global, 2); |
+ |
+// Lexical variable inside a subscope in eval. |
+eval(`{ let foo = 5; |
+ function not_lazy() { foo = 6; } |
+ not_lazy(); |
+ my_global = foo; |
+ }`); |
+assertEquals(my_global, 6); |