diff options
| author | Mohammad Sulaiman <mohammad.sulaiman@exalt.ps> | 2024-11-05 08:39:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 06:39:05 +0000 |
| commit | 89f0b796bd442ff352c3f93f69156ca6d85bfd5e (patch) | |
| tree | 3ac2a58c6d85f6af57eb2c6b07b1f2d0e8687b3a /tests/specs/run/dynamic_import_syntax_error | |
| parent | f9a05068d6de247574fb764044a446d1d7ed2e9b (diff) | |
chore: deprecate run itests (#26444)
Diffstat (limited to 'tests/specs/run/dynamic_import_syntax_error')
4 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/run/dynamic_import_syntax_error/__test__.jsonc b/tests/specs/run/dynamic_import_syntax_error/__test__.jsonc new file mode 100644 index 000000000..1971d3184 --- /dev/null +++ b/tests/specs/run/dynamic_import_syntax_error/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "run -A dynamic_import_syntax_error.js", + "output": "dynamic_import_syntax_error.js.out", + "exitCode": 1 +} diff --git a/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js new file mode 100644 index 000000000..be8ec132f --- /dev/null +++ b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js @@ -0,0 +1 @@ +await import("./dynamic_import_syntax_error_import.js"); diff --git a/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js.out b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js.out new file mode 100644 index 000000000..91e69eac7 --- /dev/null +++ b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error.js.out @@ -0,0 +1,4 @@ +error: Uncaught (in promise) SyntaxError: Unexpected reserved word at [WILDCARD]/dynamic_import_syntax_error_import.js:3:3 +await import("./dynamic_import_syntax_error_import.js"); +^ + at async [WILDCARD]/dynamic_import_syntax_error.js:1:1 diff --git a/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error_import.js b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error_import.js new file mode 100644 index 000000000..bcf075638 --- /dev/null +++ b/tests/specs/run/dynamic_import_syntax_error/dynamic_import_syntax_error_import.js @@ -0,0 +1,5 @@ +// deno-lint-ignore-file +function foo() { + await Promise.resolve(); +} +foo(); |
