diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-01-18 12:15:09 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-18 15:15:09 -0500 |
commit | f9b167deb07a650590b7f1eef8fe86bf9e22d211 (patch) | |
tree | 642b10701c8e252bbb8655c8dbc255e8c3efb01a /tests | |
parent | 315e4abd7e88c428e78c006ccf2dfdb499911a05 (diff) |
Avoid crashes on ES module resolution when module not found (#1546)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/error_009_missing_js_module.js | 1 | ||||
-rw-r--r-- | tests/error_009_missing_js_module.js.out | 1 | ||||
-rw-r--r-- | tests/error_009_missing_js_module.test | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/error_009_missing_js_module.js b/tests/error_009_missing_js_module.js new file mode 100644 index 000000000..e6ca88934 --- /dev/null +++ b/tests/error_009_missing_js_module.js @@ -0,0 +1 @@ +import "./bad-module.js"; diff --git a/tests/error_009_missing_js_module.js.out b/tests/error_009_missing_js_module.js.out new file mode 100644 index 000000000..1bcd9099e --- /dev/null +++ b/tests/error_009_missing_js_module.js.out @@ -0,0 +1 @@ +NotFound: Cannot resolve module "./bad-module.js" from "[WILDCARD]/tests/error_009_missing_js_module.js" diff --git a/tests/error_009_missing_js_module.test b/tests/error_009_missing_js_module.test new file mode 100644 index 000000000..b16bb232b --- /dev/null +++ b/tests/error_009_missing_js_module.test @@ -0,0 +1,4 @@ +args: tests/error_009_missing_js_module.js +check_stderr: true +exit_code: 1 +output: tests/error_009_missing_js_module.js.out
\ No newline at end of file |