diff options
Diffstat (limited to 'lib/querystring.js')
-rw-r--r-- | lib/querystring.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/querystring.js b/lib/querystring.js index ec6ad51a89..3bedd493f4 100644 --- a/lib/querystring.js +++ b/lib/querystring.js @@ -24,7 +24,7 @@ 'use strict'; const { Buffer } = require('buffer'); -const errors = require('internal/errors'); +const { ERR_INVALID_URI } = require('internal/errors').codes; const { hexTable, isHexTable @@ -177,7 +177,7 @@ function qsEscape(str) { ++i; if (i >= str.length) - throw new errors.URIError('ERR_INVALID_URI'); + throw new ERR_INVALID_URI(); var c2 = str.charCodeAt(i) & 0x3FF; |