diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-09 21:51:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 22:51:55 +0200 |
commit | 04a9cc95ac1349ab192c93c231c1ac97ee02fb00 (patch) | |
tree | 2b751448d8151442fc9909750077071fb58b5c3e /tests/testdata | |
parent | d9b5bccdea01928eba5a4fcff1fa1486d428b2e8 (diff) |
feat: Add better error messages for unstable APIs (#25519)
This commit improves error messages for unstable APIs:
- `--unstable-broadcast-channel`
- `--unstable-cron`
- `--unstable-http`
- `--unstable-kv`
- `--unstable-temporal`
By providing information and hints what went wrong and how the
error can be fixed. It reuses the same infra that was added in
https://github.com/denoland/deno/pull/21764.
Diffstat (limited to 'tests/testdata')
-rw-r--r-- | tests/testdata/run/unstable_temporal_api/missing_flag.js | 1 | ||||
-rw-r--r-- | tests/testdata/run/unstable_temporal_api/missing_flag.out | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/tests/testdata/run/unstable_temporal_api/missing_flag.js b/tests/testdata/run/unstable_temporal_api/missing_flag.js deleted file mode 100644 index 92aed7931..000000000 --- a/tests/testdata/run/unstable_temporal_api/missing_flag.js +++ /dev/null @@ -1 +0,0 @@ -Temporal.Now.instant(); diff --git a/tests/testdata/run/unstable_temporal_api/missing_flag.out b/tests/testdata/run/unstable_temporal_api/missing_flag.out deleted file mode 100644 index 8f8e23e70..000000000 --- a/tests/testdata/run/unstable_temporal_api/missing_flag.out +++ /dev/null @@ -1,4 +0,0 @@ -error: Uncaught (in promise) ReferenceError: Temporal is not defined -Temporal.Now.instant(); -^ - at [WILDCARD]missing_flag.js:1:1 |