summaryrefslogtreecommitdiff
path: root/test/message/source_map_throw_catch.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/message/source_map_throw_catch.js')
-rw-r--r--test/message/source_map_throw_catch.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/message/source_map_throw_catch.js b/test/message/source_map_throw_catch.js
new file mode 100644
index 0000000000..f3a887474b
--- /dev/null
+++ b/test/message/source_map_throw_catch.js
@@ -0,0 +1,11 @@
+// Flags: --enable-source-maps
+
+'use strict';
+require('../common');
+try {
+ require('../fixtures/source-map/typescript-throw');
+} catch (err) {
+ setTimeout(() => {
+ console.info(err);
+ }, 10);
+}