diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-27 11:58:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 11:58:36 -0400 |
commit | 49f97d5f85b3be9b698a39ac3f16b0e9c77efeb8 (patch) | |
tree | 69149e5fcab8c44833a7a6ac2b75fca73484b03f /cli/tsc/99_main_compiler.js | |
parent | feb744cebd37263026893c7e7c4852daa5df24d0 (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.js | 4 |
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; |