From 49f97d5f85b3be9b698a39ac3f16b0e9c77efeb8 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 27 Mar 2024 11:58:36 -0400 Subject: fix(check): do not suggest running with `--unstable` (#23092) Closes #23079 --- cli/tsc/99_main_compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index e6123d25e..e47300491 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -354,7 +354,7 @@ delete Object.prototype.__proto__; case 2339: { const property = getProperty(); if (property && unstableDenoProps.has(property)) { - return `${msg} 'Deno.${property}' is an unstable API. Did you forget to run with the '--unstable' flag? ${unstableMsgSuggestion}`; + return `${msg} 'Deno.${property}' is an unstable API. ${unstableMsgSuggestion}`; } return msg; } @@ -363,7 +363,7 @@ delete Object.prototype.__proto__; if (property && unstableDenoProps.has(property)) { const suggestion = getMsgSuggestion(); if (suggestion) { - return `${msg} 'Deno.${property}' is an unstable API. Did you forget to run with the '--unstable' flag, or did you mean '${suggestion}'? ${unstableMsgSuggestion}`; + return `${msg} 'Deno.${property}' is an unstable API. Did you mean '${suggestion}'? ${unstableMsgSuggestion}`; } } return msg; -- cgit v1.2.3