diff --git a/src/lib/punycode.js b/src/lib/punycode.js index ac6859738..f3866b8e6 100644 --- a/src/lib/punycode.js +++ b/src/lib/punycode.js @@ -64,7 +64,7 @@ * @returns {Error} Throws a `RangeError` with the applicable error message. */ function error(type) { - throw RangeError(errors[type]); + throw new RangeError(errors[type]); } /**