diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-09 11:16:15 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-09 13:20:51 +0100 |
commit | 3014e529be3a4a230cb32cdb400c9994d064a5bf (patch) | |
tree | 77504544e3459acac79100a97b098287317f0cc5 /Userland/Libraries/LibJS/Runtime/BigInt.cpp | |
parent | 9f2dd894467192c3ea73aad0c3088d1cd0c77add (diff) | |
download | serenity-3014e529be3a4a230cb32cdb400c9994d064a5bf.zip |
LibJS: Tweak error message in the NumberToBigInt abstract operation
This is no longer specific to the BigInt() constructor, so it shouldn't
be mentioning an 'argument' that we might not have.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BigInt.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/BigInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BigInt.cpp b/Userland/Libraries/LibJS/Runtime/BigInt.cpp index 60022cccef..ec6db73e49 100644 --- a/Userland/Libraries/LibJS/Runtime/BigInt.cpp +++ b/Userland/Libraries/LibJS/Runtime/BigInt.cpp @@ -34,7 +34,7 @@ BigInt* number_to_bigint(GlobalObject& global_object, Value number) // 1. If IsIntegralNumber(number) is false, throw a RangeError exception. if (!number.is_integral_number()) { - vm.throw_exception<RangeError>(global_object, ErrorType::BigIntIntArgument); + vm.throw_exception<RangeError>(global_object, ErrorType::BigIntFromNonIntegral); return {}; } |