Index: test/mjsunit/debug-evaluate-shadowed-context.js |
diff --git a/test/mjsunit/debug-evaluate-shadowed-context.js b/test/mjsunit/debug-evaluate-shadowed-context.js |
index 6847a93f66216d1306007022211d4758a8b5da66..221efb39d071e07832908c0c67164b66b6860a6d 100644 |
--- a/test/mjsunit/debug-evaluate-shadowed-context.js |
+++ b/test/mjsunit/debug-evaluate-shadowed-context.js |
@@ -29,8 +29,7 @@ |
} |
assertEquals("[object global]", |
String(exec_state.frame(0).evaluate("this").value())); |
- assertEquals("y", exec_state.frame(0).evaluate("y").value()); |
- assertEquals("a", exec_state.frame(0).evaluate("a").value()); |
+ exec_state.frame(0).evaluate("y = 'Y'"); |
exec_state.frame(0).evaluate("a = 'A'"); |
assertThrows(() => exec_state.frame(0).evaluate("z"), ReferenceError); |
} catch (e) { |
@@ -42,7 +41,7 @@ |
Debug.setListener(listener); |
var a = "a"; |
-(function() { |
+assertEquals("Y", (function() { |
var x = 1; // context allocate x |
(() => x); |
var y = "y"; |
@@ -55,12 +54,12 @@ |
})(); // 2 |
})(); // 1 |
return y; |
-})(); |
+})()); |
assertEquals("A", a); |
a = "a"; |
-(function() { |
+assertEquals("Y", (function() { |
var x = 1; // context allocate x |
(() => x); |
var y = "y"; |
@@ -75,7 +74,7 @@ |
})(); // 2 |
})(); // 1 |
return y; |
-})(); |
+})()); |
assertEquals("A", a); |