2016-11-14 10:46:06 +00:00
|
|
|
// Copyright 2016 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.
|
|
|
|
|
2017-05-19 00:35:45 +00:00
|
|
|
let {session, contextGroup, Protocol} = InspectorTest.start('Tests possible breakpoints in array literal');
|
|
|
|
|
2016-11-14 10:46:06 +00:00
|
|
|
Protocol.Debugger.enable();
|
|
|
|
|
|
|
|
Protocol.Debugger.onceScriptParsed().then(message => message.params.scriptId)
|
|
|
|
.then((scriptId) => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumber: 0, columnNumber: 0, scriptId: scriptId }}))
|
|
|
|
.then(InspectorTest.logMessage)
|
|
|
|
.then(InspectorTest.completeTest);
|
|
|
|
|
2017-05-19 00:35:45 +00:00
|
|
|
contextGroup.addScript("() => []");
|