2016-10-05 15:07:57 +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("Check that exceptionThrown is supported by test runner.")
|
2016-10-05 15:07:57 +00:00
|
|
|
|
|
|
|
Protocol.Runtime.enable();
|
|
|
|
Protocol.Runtime.onExceptionThrown(message => InspectorTest.logMessage(message));
|
|
|
|
Protocol.Runtime.evaluate({ expression: "setTimeout(() => { \n throw new Error() }, 0)" });
|
|
|
|
Protocol.Runtime.evaluate({ expression: "setTimeout(\" }\", 0)" });
|
|
|
|
Protocol.Runtime.evaluate({ expression: "setTimeout(() => { \n throw 239; }, 0)" });
|
2017-05-19 00:35:45 +00:00
|
|
|
InspectorTest.waitForPendingTasks().then(InspectorTest.completeTest);
|