summaryrefslogtreecommitdiff
path: root/test/message/async_error_sync_esm.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'test/message/async_error_sync_esm.mjs')
-rw-r--r--test/message/async_error_sync_esm.mjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/message/async_error_sync_esm.mjs b/test/message/async_error_sync_esm.mjs
new file mode 100644
index 0000000000..86a901a122
--- /dev/null
+++ b/test/message/async_error_sync_esm.mjs
@@ -0,0 +1,14 @@
+// Flags: --experimental-modules
+/* eslint-disable node-core/required-modules */
+import '../common/index.mjs';
+import four from '../fixtures/async-error.js';
+
+async function main() {
+ try {
+ await four();
+ } catch (e) {
+ console.error(e);
+ }
+}
+
+main();