summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-27 11:58:36 -0400
committerGitHub <noreply@github.com>2024-03-27 11:58:36 -0400
commit49f97d5f85b3be9b698a39ac3f16b0e9c77efeb8 (patch)
tree69149e5fcab8c44833a7a6ac2b75fca73484b03f /cli/tsc/99_main_compiler.js
parentfeb744cebd37263026893c7e7c4852daa5df24d0 (diff)
fix(check): do not suggest running with `--unstable` (#23092)
Closes #23079
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r--cli/tsc/99_main_compiler.js4
1 files changed, 2 insertions, 2 deletions
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;