diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2020-12-15 16:52:55 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-15 16:52:55 +1100 |
| commit | 63a821b78b5a293c0eb5b3ecc18d67bde8331eda (patch) | |
| tree | 4229af0ba8b9f56467f1355b0c53054b69039edf /cli/tests/dynamic_import | |
| parent | b6d5ae1ecd125ce8a14cddc877cb66dbcfc9bb04 (diff) | |
fix(cli): make dynamic import errors catchable (#8750)
Fixes #6259
Diffstat (limited to 'cli/tests/dynamic_import')
| -rw-r--r-- | cli/tests/dynamic_import/b.js | 2 | ||||
| -rw-r--r-- | cli/tests/dynamic_import/c.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/dynamic_import/b.js b/cli/tests/dynamic_import/b.js new file mode 100644 index 000000000..6ea50d360 --- /dev/null +++ b/cli/tests/dynamic_import/b.js @@ -0,0 +1,2 @@ +import "./bad.mjs"; +export default () => "error"; diff --git a/cli/tests/dynamic_import/c.js b/cli/tests/dynamic_import/c.js new file mode 100644 index 000000000..20546455e --- /dev/null +++ b/cli/tests/dynamic_import/c.js @@ -0,0 +1,2 @@ +await import("./bad2.mjs"); +export default () => "error"; |
