Index: test/mjsunit/debug-evaluate-locals.js |
diff --git a/test/mjsunit/debug-evaluate-locals.js b/test/mjsunit/debug-evaluate-locals.js |
index d63aa9db3af373e86ae41478d4f108275fbd5c7f..1788bd8ce2ea882ed2395a919a9472383adf686e 100644 |
--- a/test/mjsunit/debug-evaluate-locals.js |
+++ b/test/mjsunit/debug-evaluate-locals.js |
@@ -25,7 +25,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --expose-debug-as debug --debug-eval-readonly-locals |
+// Flags: --expose-debug-as debug |
// Get the Debug object exposed from the debug context global object. |
Debug = debug.Debug |
@@ -113,20 +113,17 @@ function listener(event, exec_state, event_data, data) { |
checkFrame1(exec_state.frame(1)); |
checkFrame2(exec_state.frame(2)); |
- // Evaluating a and b on frames 0, 1 and 2 produces 1, 2, 3, 4, 5 and 6. |
assertEquals(1, exec_state.frame(0).evaluate('a').value()); |
assertEquals(2, exec_state.frame(0).evaluate('b').value()); |
assertEquals(5, exec_state.frame(0).evaluate('eval').value()); |
assertEquals(3, exec_state.frame(1).evaluate('a').value()); |
- // Reference error because g does not reference b. |
- assertThrows(() => exec_state.frame(1).evaluate('b'), ReferenceError); |
+ assertEquals(4, exec_state.frame(1).evaluate('b').value()); |
assertEquals("function", |
typeof exec_state.frame(1).evaluate('eval').value()); |
assertEquals(5, exec_state.frame(2).evaluate('a').value()); |
assertEquals(6, exec_state.frame(2).evaluate('b').value()); |
assertEquals("function", |
typeof exec_state.frame(2).evaluate('eval').value()); |
- // Assignments to local variables only have temporary effect. |
assertEquals("foo", |
exec_state.frame(0).evaluate('a = "foo"').value()); |
assertEquals("bar", |
@@ -145,7 +142,7 @@ Debug.setListener(listener); |
var f_result = f(); |
-assertEquals(4, f_result); |
+assertEquals("foobar", f_result); |
// Make sure that the debug event listener was invoked. |
assertFalse(exception, "exception in listener") |