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

Side by Side Diff: test/mjsunit/ignition/debug-scope-on-return.js

Issue 1796893002: [Interpreter] Pops the context to the correct level on return. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased the patch. Created 4 years, 9 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 | « test/cctest/interpreter/test-interpreter.cc ('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
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
Michael Achenbach 2016/03/16 18:59:03 Please skip this test with ignition+msan: https://
3 // found in the LICENSE file.
4
5 // Flags: --expose-debug-as debug
6
7 // Check that the we are still in function context when we break on return.
8
9 var Debug = debug.Debug;
10
11 function listener(event, exec_state, event_data, data) {
12 if (event == Debug.DebugEvent.Break) {
13 // Access scope details to check the context is correct.
14 var scope_count = exec_state.frame().scopeCount();
15 // Do steps until we reach the global scope again.
16 exec_state.prepareStep(Debug.StepAction.StepIn);
17 }
18 }
19
20 Debug.setListener(listener);
21
22 function f() {
23 debugger;
24
25 L: with ({x:12}) {
26 break L;
27 }
28
29 return;
30 }
31 f();
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698