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

Side by Side Diff: test/mjsunit/harmony/async-debug-basic.js

Issue 1990803005: [runtime] set AsyncFunctionNext/Throw to adapt arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also, don't expose AsyncFunctionNext/AsyncFunctionThrow in stack trace Created 4 years, 7 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
« src/bootstrapper.cc ('K') | « src/bootstrapper.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
3 // found in the LICENSE file.
4
5 // Flags: --harmony-async-await --allow-natives-syntax --expose-debug-as debug
6
7 // Get the Debug object exposed from the debug context global object.
8 Debug = debug.Debug
9
10 listenerComplete = false;
11 breakPointCount = 0;
12
13 async function f() {
14 await (async function() { var a = "a"; await 1; debugger; })();
15
16 var b = "b";
17
18 assertTrue(listenerDone);
19 assertFalse(exception);
20 assertEquals(1, breakpointCount);
21 }
22
23 function listener(event, exec_state, event_data, data) {
24 try {
25 if (event != Debug.DebugEvent.Break) return;
26
27 breakpointCount++;
28 listenerDone = true;
29 assertEquals("a", exec_state.frame(0).evaluate("a"));
30 assertEquals("b", exec_state.frame(1).evaluate("b"));
31 assertEquals("c", exec_state.frame(2).evaluate("c"));
32 } catch (e) {
33 exception = e;
34 };
35 };
36
37 Debug.setListener(listener);
38
39 var c = "c";
40 f();
OLDNEW
« src/bootstrapper.cc ('K') | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698