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

Side by Side Diff: test/inspector/debugger/get-possible-breakpoints-lazy-error.js

Issue 2851853002: [inspector] entered into context before getPossibleBreakpoints call (Closed)
Patch Set: debugger context.. Created 3 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
OLDNEW
(Empty)
1 // Copyright 2017 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 InspectorTest.log('getPossibleBreakpoints should not crash during lazy compilati on (crbug.com/715334)');
6
7 InspectorTest.addScript(`
8 function test() { continue; }
9 //# sourceURL=test.js`);
10
11 (async function test() {
12 Protocol.Debugger.enable();
13 let script = await Protocol.Debugger.onceScriptParsed();
14 InspectorTest.logMessage(script);
15 let scriptId = script.params.scriptId;
16 Protocol.Debugger.onScriptFailedToParse(msg => {
17 InspectorTest.logMessage(msg);
18 if (msg.params.scriptId !== script.params.scriptId) {
19 InspectorTest.log('Failed script to parse event has different scriptId');
20 } else {
21 InspectorTest.log('One script is reported twice');
22 }
23 });
24 let response = await Protocol.Debugger.getPossibleBreakpoints({
25 start: {scriptId, lineNumber: 0, columnNumber: 0}});
26 InspectorTest.logMessage(response);
27 InspectorTest.completeTest();
28 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698