diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs index 84ddd53be8..84ed929906 100644 --- a/cli/tests/integration/check_tests.rs +++ b/cli/tests/integration/check_tests.rs @@ -84,6 +84,17 @@ itest!(check_no_error_truncation { exit_code: 1, }); +itest!(check_broadcast_channel_stable { + args: "check --quiet check/broadcast_channel.ts", + output: "check/broadcast_channel.ts.error.out", + exit_code: 1, +}); + +itest!(check_broadcast_channel_unstable { + args: "check --quiet --unstable check/broadcast_channel.ts", + exit_code: 0, +}); + #[test] fn cache_switching_config_then_no_config() { let context = TestContext::default(); diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 500a27ed2c..656ec9ade7 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -4713,7 +4713,7 @@ fn lsp_completions_auto_import() { "source": "./b.ts", "data": { "exportName": "foo", - "exportMapKey": "foo|6845|file:///a/b", + "exportMapKey": "foo|6806|file:///a/b", "moduleSpecifier": "./b.ts", "fileName": "file:///a/b.ts" }, diff --git a/cli/tests/testdata/check/broadcast_channel.ts b/cli/tests/testdata/check/broadcast_channel.ts new file mode 100644 index 0000000000..6c75b4a8e1 --- /dev/null +++ b/cli/tests/testdata/check/broadcast_channel.ts @@ -0,0 +1 @@ +const _channel = new BroadcastChannel("foo"); diff --git a/cli/tests/testdata/check/broadcast_channel.ts.error.out b/cli/tests/testdata/check/broadcast_channel.ts.error.out new file mode 100644 index 0000000000..baa6727e3e --- /dev/null +++ b/cli/tests/testdata/check/broadcast_channel.ts.error.out @@ -0,0 +1,4 @@ +error: TS2304 [ERROR]: Cannot find name 'BroadcastChannel'. +const _channel = new BroadcastChannel("foo"); + ~~~~~~~~~~~~~~~~ + at [WILDCARD] diff --git a/cli/tsc/dts/lib.deno.shared_globals.d.ts b/cli/tsc/dts/lib.deno.shared_globals.d.ts index d0b44f58af..69850f0b2d 100644 --- a/cli/tsc/dts/lib.deno.shared_globals.d.ts +++ b/cli/tsc/dts/lib.deno.shared_globals.d.ts @@ -11,7 +11,6 @@ /// /// /// -/// /** @category WebAssembly */ declare namespace WebAssembly { diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 8613da2ab5..e70d508200 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -2,6 +2,7 @@ /// /// +/// declare namespace Deno { export {}; // stop default export type behavior