From 0fb39f9176c5bfb6a8cd50addd85d596fe93c459 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 21 Oct 2020 21:57:01 +1100 Subject: feat(cli): add types for WeakRef/FinalizationRegistry (#8056) Fixes #8051 --- cli/tests/integration_tests.rs | 5 +++++ cli/tests/performance_stats.out | 2 +- cli/tests/weakref.ts | 1 + cli/tests/weakref.ts.out | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 cli/tests/weakref.ts create mode 100644 cli/tests/weakref.ts.out (limited to 'cli/tests') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index f7edf5a42..8956d3f7b 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2641,6 +2641,11 @@ itest!(wasm_unreachable { exit_code: 1, }); +itest!(weakref { + args: "run --quiet --reload weakref.ts", + output: "weakref.ts.out", +}); + itest!(top_level_await_order { args: "run --allow-read top_level_await_order.js", output: "top_level_await_order.out", diff --git a/cli/tests/performance_stats.out b/cli/tests/performance_stats.out index a18e59da9..0fe7ba7f0 100644 --- a/cli/tests/performance_stats.out +++ b/cli/tests/performance_stats.out @@ -1,5 +1,5 @@ [WILDCARD] -DEBUG RS - [WILDCARD] - Files: 46 +DEBUG RS - [WILDCARD] - Files: [WILDCARD] DEBUG RS - [WILDCARD] - Nodes: [WILDCARD] DEBUG RS - [WILDCARD] - Identifiers: [WILDCARD] DEBUG RS - [WILDCARD] - Symbols: [WILDCARD] diff --git a/cli/tests/weakref.ts b/cli/tests/weakref.ts new file mode 100644 index 000000000..47c3985fe --- /dev/null +++ b/cli/tests/weakref.ts @@ -0,0 +1 @@ +console.log(WeakRef, FinalizationRegistry); diff --git a/cli/tests/weakref.ts.out b/cli/tests/weakref.ts.out new file mode 100644 index 000000000..32bafcf2d --- /dev/null +++ b/cli/tests/weakref.ts.out @@ -0,0 +1 @@ +[Function: WeakRef] [Function: FinalizationRegistry] -- cgit v1.2.3