diff options
Diffstat (limited to 'ext/webidl/00_webidl.js')
-rw-r--r-- | ext/webidl/00_webidl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js index 9ea2200f3..36fc89ce2 100644 --- a/ext/webidl/00_webidl.js +++ b/ext/webidl/00_webidl.js @@ -95,7 +95,7 @@ function makeException(ErrorType, message, prefix, context) { function toNumber(value) { if (typeof value === "bigint") { - throw TypeError("Cannot convert a BigInt value to a number"); + throw new TypeError("Cannot convert a BigInt value to a number"); } return Number(value); } |