From 388274e02ea7e054f0bbbe4f863dc32447c5971d Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 22 Jun 2021 06:33:00 +0530 Subject: fix: move stable/unstable types/APIs to their correct places (#10880) - Moved ppid and memoryUsage types from deno.unstable to deno.ns. - Moved sleepSync to unstable object, shutdown to stable object. --- cli/tests/integration_tests.rs | 6 ------ cli/tests/unstable_disabled_ts2551.out | 10 ---------- cli/tests/unstable_ts2551.ts | 1 - 3 files changed, 17 deletions(-) delete mode 100644 cli/tests/unstable_disabled_ts2551.out delete mode 100644 cli/tests/unstable_ts2551.ts (limited to 'cli/tests') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 2cad5a44c..ce4c8d7d8 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -3976,12 +3976,6 @@ console.log("finish"); output: "unstable_enabled_js.out", }); - itest!(unstable_disabled_ts2551 { - args: "run --reload unstable_ts2551.ts", - exit_code: 1, - output: "unstable_disabled_ts2551.out", - }); - itest!(unstable_worker { args: "run --reload --unstable --quiet --allow-read unstable_worker.ts", output: "unstable_worker.ts.out", diff --git a/cli/tests/unstable_disabled_ts2551.out b/cli/tests/unstable_disabled_ts2551.out deleted file mode 100644 index bf8e6872b..000000000 --- a/cli/tests/unstable_disabled_ts2551.out +++ /dev/null @@ -1,10 +0,0 @@ -[WILDCARD] -error: TS2551 [ERROR]: Property 'ppid' does not exist on type 'typeof Deno'. 'Deno.ppid' is an unstable API. Did you forget to run with the '--unstable' flag, or did you mean 'pid'? -console.log(Deno.ppid); - ~~~~ - at [WILDCARD]cli/tests/unstable_ts2551.ts:1:18 - - 'pid' is declared here. - export const pid: number; - ~~~ - at asset:///lib.deno.ns.d.ts:[WILDCARD] diff --git a/cli/tests/unstable_ts2551.ts b/cli/tests/unstable_ts2551.ts deleted file mode 100644 index c9016c56c..000000000 --- a/cli/tests/unstable_ts2551.ts +++ /dev/null @@ -1 +0,0 @@ -console.log(Deno.ppid); -- cgit v1.2.3