Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: test/mjsunit/debug-liveedit-restart-frame.js

Issue 1247363002: Remove RestartFrame from live edit API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/liveedit-debugger.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 function DebuggerStatementHandler(exec_state) { 91 function DebuggerStatementHandler(exec_state) {
92 while (true) { 92 while (true) {
93 assertTrue(scenario_pos < test_scenario.length); 93 assertTrue(scenario_pos < test_scenario.length);
94 var change_code = test_scenario[scenario_pos++]; 94 var change_code = test_scenario[scenario_pos++];
95 if (change_code == '=') { 95 if (change_code == '=') {
96 // Continue. 96 // Continue.
97 return; 97 return;
98 } 98 }
99 var frame = FindCallFrame(exec_state, change_code); 99 var frame = FindCallFrame(exec_state, change_code);
100 // Throws if fails. 100 var error = frame.restart();
101 Debug.LiveEdit.RestartFrame(frame); 101 if (typeof error === 'string')
102 throw new Error(error);
102 } 103 }
103 } 104 }
104 105
105 var saved_exception = null; 106 var saved_exception = null;
106 107
107 function listener(event, exec_state, event_data, data) { 108 function listener(event, exec_state, event_data, data) {
108 if (saved_exception != null) { 109 if (saved_exception != null) {
109 return; 110 return;
110 } 111 }
111 if (event == Debug.DebugEvent.Break) { 112 if (event == Debug.DebugEvent.Break) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 TestCase('=', "FEDCBA="); 145 TestCase('=', "FEDCBA=");
145 146
146 TestCase('C==', "FEDCBA=CBA="); 147 TestCase('C==', "FEDCBA=CBA=");
147 148
148 TestCase('B=C=A=D==', "FEDCBA=BA=CBA=A=DCBA="); 149 TestCase('B=C=A=D==', "FEDCBA=BA=CBA=A=DCBA=");
149 150
150 // Successive restarts don't work now and require additional fix. 151 // Successive restarts don't work now and require additional fix.
151 //TestCase('BCDE==', "FEDCBA=EDCBA="); 152 //TestCase('BCDE==', "FEDCBA=EDCBA=");
152 //TestCase('BC=BCDE==', "FEDCBA=CBA=EDCBA="); 153 //TestCase('BC=BCDE==', "FEDCBA=CBA=EDCBA=");
153 //TestCase('EF==', "FEDCBA=FEDCBA="); 154 //TestCase('EF==', "FEDCBA=FEDCBA=");
OLDNEW
« no previous file with comments | « src/liveedit-debugger.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698