url: use `hasIntl` instead of `try-catch`
Like the other internal modules, we should use
`process.binding('config').hasIntl` instead of `try-catch`
to make sure `icu` is bonded or not.
PR-URL: https://github.com/nodejs/node/pull/11571
Reviewed-By:
James M Snell <jasnell@gmail.com>
Reviewed-By:
Timothy Gu <timothygu99@gmail.com>
Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
Reviewed-By:
Luigi Pinca <luigipinca@gmail.com>
Reviewed-By:
Anna Henningsen <anna@addaleax.net>
Reviewed-By:
Jackson Tian <shyvo1987@gmail.com>
parent
3b05153c
Please register or sign in to comment