| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 25801b9 commit 421ab3c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,8 +171,7 @@ function deprecate(fn, msg, code, useEmitSync, modifyPrototype = true) { | |||
| 171 | 171 | ); | |
| 172 | 172 | ||
| 173 | 173 | function deprecated(...args) { | |
| 174 | - // TODO(joyeecheung): use getOptionValue('--no-deprecation') instead. | ||
| 175 | - if (!process.noDeprecation) { | ||
| 174 | + if (!getOptionValue('--no-deprecation') && !process.noDeprecation) { | ||
| 176 | 175 | emitDeprecationWarning(); | |
| 177 | 176 | } | |
| 178 | 177 | if (new.target) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments