Upgrade V8 to 5.1.281.57 DO NOT MERGE
FPIIM-449
Change-Id: Id981b686b4d587ac31697662eb98bb34be42ad90
(cherry picked from commit 3b9bc31999c9787eb726ecdbfd5796bfdec32a18)
diff --git a/test/mjsunit/debug-evaluate-modify-catch-block-scope.js b/test/mjsunit/debug-evaluate-modify-catch-block-scope.js
index 07d6ccb..676f782 100644
--- a/test/mjsunit/debug-evaluate-modify-catch-block-scope.js
+++ b/test/mjsunit/debug-evaluate-modify-catch-block-scope.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --expose-debug-as debug --debug-eval-readonly-locals
+// Flags: --expose-debug-as debug
Debug = debug.Debug
@@ -10,7 +10,11 @@
function listener(event, exec_state, event_data, data) {
if (event != Debug.DebugEvent.Break) return;
try {
+ exec_state.frame(0).evaluate("a = 2");
+ exec_state.frame(0).evaluate("e = 3");
exec_state.frame(0).evaluate("bar()");
+ exec_state.frame(0).evaluate("a++");
+ exec_state.frame(0).evaluate("e++");
} catch (e) {
exception = e;
print(e + e.stack);
@@ -26,12 +30,12 @@
} catch (e) {
let a = 1;
function bar() {
- a = 2;
- e = 2;
+ a *= 2;
+ e *= 2;
}
debugger;
- assertEquals(2, a);
- assertEquals(2, e);
+ assertEquals(5, a);
+ assertEquals(7, e);
}
})();