diff options
author | Linus Groh <mail@linusgroh.de> | 2021-03-02 19:22:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-03 11:04:06 +0100 |
commit | 585123127ec5bc8eb4e66d1ce3a67bea46f59006 (patch) | |
tree | 7b5a17340128fe3c9a91d4cde3e23673c7494ee8 /Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp | |
parent | f99644e75b67129b319c19f7c449ec16989f85fd (diff) | |
download | serenity-585123127ec5bc8eb4e66d1ce3a67bea46f59006.zip |
LibJS: Support @@toPrimitive in ToPrimitive abstract operation
Fixes #3961.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp index 5eec127b63..20c767b8b3 100644 --- a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp @@ -57,7 +57,7 @@ BigIntConstructor::~BigIntConstructor() Value BigIntConstructor::call() { - auto primitive = vm().argument(0).to_primitive(Value::PreferredType::Number); + auto primitive = vm().argument(0).to_primitive(global_object(), Value::PreferredType::Number); if (vm().exception()) return {}; if (primitive.is_number()) { |