summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/debugger/step-into-external-async-task.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 11:10:15 +0200
committerMichaël Zasso <targos@protonmail.com>2022-04-12 22:08:39 +0200
commitfd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch)
tree00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/test/inspector/debugger/step-into-external-async-task.js
parent73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff)
downloadnode-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/test/inspector/debugger/step-into-external-async-task.js')
-rw-r--r--deps/v8/test/inspector/debugger/step-into-external-async-task.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/deps/v8/test/inspector/debugger/step-into-external-async-task.js b/deps/v8/test/inspector/debugger/step-into-external-async-task.js
index 59b78c1630..30ef3bc321 100644
--- a/deps/v8/test/inspector/debugger/step-into-external-async-task.js
+++ b/deps/v8/test/inspector/debugger/step-into-external-async-task.js
@@ -1,6 +1,8 @@
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Flags: --no-compilation-cache
InspectorTest.log('Test for step-into remote async task');
@@ -18,11 +20,8 @@ function store(description) {
}
//# sourceURL=utils.js`;
-// TODO(rmcilroy): This has to be in this order since the i::Script object gets
-// reused via the CompilationCache, and we want OnAfterCompile to be called
-// for contextGroup1 last on this script.
-contextGroup2.addScript(utilsScript);
contextGroup1.addScript(utilsScript);
+contextGroup2.addScript(utilsScript);
let frameworkScript = `
function call(id, f) {
@@ -38,7 +37,7 @@ contextGroup2.addScript(frameworkScript);
session1.setupScriptMap();
session2.setupScriptMap();
-(async function test() {
+InspectorTest.runAsyncTestSuite([async function test() {
InspectorTest.log('Setup debugger agents..');
let debuggerId1 = (await Protocol1.Debugger.enable()).result.debuggerId;
let debuggerId2 = (await Protocol2.Debugger.enable()).result.debuggerId;
@@ -77,7 +76,7 @@ session2.setupScriptMap();
let debuggers = new Map(
[[debuggerId1, Protocol1.Debugger], [debuggerId2, Protocol2.Debugger]]);
let sessions = new Map([[debuggerId1, session1], [debuggerId2, session2]]);
- let currentDebuggerId = debuggerId1;
+ let currentDebuggerId = debuggerId2;
while (true) {
sessions.get(currentDebuggerId).logCallFrames(callFrames);
if (asyncStackTraceId) {
@@ -98,6 +97,4 @@ session2.setupScriptMap();
Protocol2.Debugger.setAsyncCallStackDepth({maxDepth: 0});
await Protocol1.Debugger.disable();
await Protocol2.Debugger.disable();
-
- InspectorTest.completeTest();
-})()
+}]);