diff --git a/punycode.js b/punycode.js index 3b80a72..7c4ee09 100644 --- a/punycode.js +++ b/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]); } /**