| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 39befdd commit 3273143
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,8 +182,7 @@ function deprecate(fn, msg, code, useEmitSync, modifyPrototype = true) { | |||
| 182 | 182 | ); | |
| 183 | 183 | ||
| 184 | 184 | function deprecated(...args) { | |
| 185 | - // TODO(joyeecheung): use getOptionValue('--no-deprecation') instead. | ||
| 186 | - if (!process.noDeprecation) { | ||
| 185 | + if (!getOptionValue('--no-deprecation') && !process.noDeprecation) { | ||
| 187 | 186 | emitDeprecationWarning(); | |
| 188 | 187 | } | |
| 189 | 188 | if (new.target) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments