summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2019-10-11 17:57:13 -0400
committerMyles Borins <mylesborins@google.com>2019-11-12 14:04:55 -0800
commit796f3d0af49164314868c4778af90eca356f1fef (patch)
treef1b8d619df36917b03ba035630f389e1da305712 /test/message
parentcc6f99de449beb0993db3647de4ef979bead804d (diff)
downloadandroid-node-v8-796f3d0af49164314868c4778af90eca356f1fef.tar.gz
android-node-v8-796f3d0af49164314868c4778af90eca356f1fef.tar.bz2
android-node-v8-796f3d0af49164314868c4778af90eca356f1fef.zip
esm: unflag --experimental-modules
PR-URL: https://github.com/nodejs/node/pull/29866 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/async_error_eval_esm.js1
-rw-r--r--test/message/async_error_eval_esm.out1
-rw-r--r--test/message/async_error_sync_esm.mjs1
-rw-r--r--test/message/async_error_sync_esm.out2
-rw-r--r--test/message/esm_display_syntax_error.mjs1
-rw-r--r--test/message/esm_display_syntax_error.out2
-rw-r--r--test/message/esm_display_syntax_error_import.mjs1
-rw-r--r--test/message/esm_display_syntax_error_import.out2
-rw-r--r--test/message/esm_display_syntax_error_import_module.mjs1
-rw-r--r--test/message/esm_display_syntax_error_module.mjs1
-rw-r--r--test/message/esm_loader_not_found.mjs2
-rw-r--r--test/message/esm_loader_syntax_error.mjs2
12 files changed, 5 insertions, 12 deletions
diff --git a/test/message/async_error_eval_esm.js b/test/message/async_error_eval_esm.js
index 33675b5a9d..0c9b7378d5 100644
--- a/test/message/async_error_eval_esm.js
+++ b/test/message/async_error_eval_esm.js
@@ -26,7 +26,6 @@ main();
// --eval ESM
{
const child = spawnSync(process.execPath, [
- '--experimental-modules',
'--input-type',
'module',
'-e',
diff --git a/test/message/async_error_eval_esm.out b/test/message/async_error_eval_esm.out
index 578a9f5c26..769fac7a0d 100644
--- a/test/message/async_error_eval_esm.out
+++ b/test/message/async_error_eval_esm.out
@@ -1,7 +1,6 @@
Error: test
at one (file:*/[eval1]:2:9)
at two (file:*/[eval1]:15:9)
- at processTicksAndRejections (internal/process/task_queues.js:*:*)
at async three (file:*/[eval1]:18:3)
at async four (file:*/[eval1]:22:3)
at async main (file:*/[eval1]:28:5)
diff --git a/test/message/async_error_sync_esm.mjs b/test/message/async_error_sync_esm.mjs
index f16256d777..fdb6a260d1 100644
--- a/test/message/async_error_sync_esm.mjs
+++ b/test/message/async_error_sync_esm.mjs
@@ -1,4 +1,3 @@
-// Flags: --experimental-modules
import '../common/index.mjs';
import four from '../fixtures/async-error.js';
diff --git a/test/message/async_error_sync_esm.out b/test/message/async_error_sync_esm.out
index f34628ef44..6577fff694 100644
--- a/test/message/async_error_sync_esm.out
+++ b/test/message/async_error_sync_esm.out
@@ -4,4 +4,4 @@ Error: test
at two (*fixtures*async-error.js:17:9)
at async three (*fixtures*async-error.js:20:3)
at async four (*fixtures*async-error.js:24:3)
- at async main (*message*async_error_sync_esm.mjs:7:5)
+ at async main (*message*async_error_sync_esm.mjs:6:5)
diff --git a/test/message/esm_display_syntax_error.mjs b/test/message/esm_display_syntax_error.mjs
index 8291867255..bda4a7e6eb 100644
--- a/test/message/esm_display_syntax_error.mjs
+++ b/test/message/esm_display_syntax_error.mjs
@@ -1,3 +1,2 @@
-// Flags: --experimental-modules
'use strict';
await async () => 0;
diff --git a/test/message/esm_display_syntax_error.out b/test/message/esm_display_syntax_error.out
index 5e82a1e1ee..778d901129 100644
--- a/test/message/esm_display_syntax_error.out
+++ b/test/message/esm_display_syntax_error.out
@@ -1,5 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
-file:///*/test/message/esm_display_syntax_error.mjs:3
+file:///*/test/message/esm_display_syntax_error.mjs:2
await async () => 0;
^^^^^
diff --git a/test/message/esm_display_syntax_error_import.mjs b/test/message/esm_display_syntax_error_import.mjs
index 4c41b292ef..2173cb2b2e 100644
--- a/test/message/esm_display_syntax_error_import.mjs
+++ b/test/message/esm_display_syntax_error_import.mjs
@@ -1,4 +1,3 @@
-// Flags: --experimental-modules
/* eslint-disable no-unused-vars */
import '../common/index.mjs';
import {
diff --git a/test/message/esm_display_syntax_error_import.out b/test/message/esm_display_syntax_error_import.out
index a3601d6cb4..e39744a049 100644
--- a/test/message/esm_display_syntax_error_import.out
+++ b/test/message/esm_display_syntax_error_import.out
@@ -1,5 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
-file:///*/test/message/esm_display_syntax_error_import.mjs:6
+file:///*/test/message/esm_display_syntax_error_import.mjs:5
notfound
^^^^^^^^
SyntaxError: The requested module '../fixtures/es-module-loaders/module-named-exports.mjs' does not provide an export named 'notfound'
diff --git a/test/message/esm_display_syntax_error_import_module.mjs b/test/message/esm_display_syntax_error_import_module.mjs
index 346b3489fd..c0345c44fb 100644
--- a/test/message/esm_display_syntax_error_import_module.mjs
+++ b/test/message/esm_display_syntax_error_import_module.mjs
@@ -1,3 +1,2 @@
-// Flags: --experimental-modules
import '../common/index.mjs';
import '../fixtures/es-module-loaders/syntax-error-import.mjs';
diff --git a/test/message/esm_display_syntax_error_module.mjs b/test/message/esm_display_syntax_error_module.mjs
index 1f2b87ecd0..da40a4ead8 100644
--- a/test/message/esm_display_syntax_error_module.mjs
+++ b/test/message/esm_display_syntax_error_module.mjs
@@ -1,3 +1,2 @@
-// Flags: --experimental-modules
import '../common/index.mjs';
import '../fixtures/es-module-loaders/syntax-error.mjs';
diff --git a/test/message/esm_loader_not_found.mjs b/test/message/esm_loader_not_found.mjs
index fd6f29ac53..2b47e5a03e 100644
--- a/test/message/esm_loader_not_found.mjs
+++ b/test/message/esm_loader_not_found.mjs
@@ -1,3 +1,3 @@
-// Flags: --experimental-modules --experimental-loader i-dont-exist
+// Flags: --experimental-loader i-dont-exist
import '../common/index.mjs';
console.log('This should not be printed');
diff --git a/test/message/esm_loader_syntax_error.mjs b/test/message/esm_loader_syntax_error.mjs
index 7caad4056e..68cde42e58 100644
--- a/test/message/esm_loader_syntax_error.mjs
+++ b/test/message/esm_loader_syntax_error.mjs
@@ -1,3 +1,3 @@
-// Flags: --experimental-modules --experimental-loader ./test/fixtures/es-module-loaders/syntax-error.mjs
+// Flags: --experimental-loader ./test/fixtures/es-module-loaders/syntax-error.mjs
import '../common/index.mjs';
console.log('This should not be printed');