summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/runtime/exception-thrown.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/runtime/exception-thrown.js')
-rw-r--r--deps/v8/test/inspector/runtime/exception-thrown.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/runtime/exception-thrown.js b/deps/v8/test/inspector/runtime/exception-thrown.js
new file mode 100644
index 0000000000..76752f9d3b
--- /dev/null
+++ b/deps/v8/test/inspector/runtime/exception-thrown.js
@@ -0,0 +1,12 @@
+// 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.
+
+print("Check that exceptionThrown is supported by test runner.")
+
+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)" });
+InspectorTest.completeTestAfterPendingTimeouts();