38be4a17c1
- separated V8StackTraceImpl and AsyncStackTrace,
- V8Debugger owns all AsyncStackTrace and cleanup half of them when limit is reached (first created - first cleaned),
- V8StackTraceImpl, AsyncStackTrace and async-task-related tables in V8Debugger have weak reference to other async stack traces.
- async tasks are cleared with related async stacks.
BUG=v8:6189
R=dgozman@chromium.org
Review-Url: https://codereview.chromium.org/2816043006
Cr-Original-Commit-Position: refs/heads/master@{#44670}
Committed: 1bca73bc83
Review-Url: https://codereview.chromium.org/2816043006
Cr-Commit-Position: refs/heads/master@{#44694}
29 lines
821 B
JavaScript
29 lines
821 B
JavaScript
// 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.
|
|
|
|
InspectorTest.log('Checks that we passed correct arguments in ' +
|
|
'V8InspectorClient::consoleAPIMessage. Note: lines and columns are 1-based.');
|
|
|
|
InspectorTest.addScript(`
|
|
function consoleTrace() {
|
|
function a() {
|
|
function b() {
|
|
console.trace(239);
|
|
}
|
|
b();
|
|
}
|
|
a();
|
|
}
|
|
`, 8, 26);
|
|
|
|
Protocol.Runtime.enable();
|
|
utils.setLogConsoleApiMessageCalls(true);
|
|
(async function test() {
|
|
Protocol.Runtime.evaluate({expression: 'console.log(42)'});
|
|
await Protocol.Runtime.onceConsoleAPICalled()
|
|
Protocol.Runtime.evaluate({expression: 'consoleTrace()'});
|
|
await Protocol.Runtime.onceConsoleAPICalled()
|
|
InspectorTest.completeTest();
|
|
})();
|