| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,15 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | + const { getOptionValue } = require('internal/options'); | ||
| 4 | + if (getOptionValue('--pending-deprecation')){ | ||
| 5 | + process.emitWarning( | ||
| 6 | + 'The `punycode` module is deprecated. Please use a userland ' + | ||
| 7 | + 'alternative instead.', | ||
| 8 | + 'DeprecationWarning', | ||
| 9 | + 'DEP0040', | ||
| 10 | + ); | ||
| 11 | + } | ||
| 12 | + | ||
| 3 | 13 | /** Highest positive signed 32-bit float value */ | |
| 4 | 14 | const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 | |
| 5 | 15 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments