summaryrefslogtreecommitdiff
path: root/tests/specs/run/weakref
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/weakref')
-rw-r--r--tests/specs/run/weakref/__test__.jsonc4
-rw-r--r--tests/specs/run/weakref/weakref.ts1
-rw-r--r--tests/specs/run/weakref/weakref.ts.out1
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/specs/run/weakref/__test__.jsonc b/tests/specs/run/weakref/__test__.jsonc
new file mode 100644
index 000000000..1a5808ec7
--- /dev/null
+++ b/tests/specs/run/weakref/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "run --quiet --reload weakref.ts",
+ "output": "weakref.ts.out"
+}
diff --git a/tests/specs/run/weakref/weakref.ts b/tests/specs/run/weakref/weakref.ts
new file mode 100644
index 000000000..47c3985fe
--- /dev/null
+++ b/tests/specs/run/weakref/weakref.ts
@@ -0,0 +1 @@
+console.log(WeakRef, FinalizationRegistry);
diff --git a/tests/specs/run/weakref/weakref.ts.out b/tests/specs/run/weakref/weakref.ts.out
new file mode 100644
index 000000000..32bafcf2d
--- /dev/null
+++ b/tests/specs/run/weakref/weakref.ts.out
@@ -0,0 +1 @@
+[Function: WeakRef] [Function: FinalizationRegistry]