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/Value.h | |
parent | f99644e75b67129b319c19f7c449ec16989f85fd (diff) | |
download | serenity-585123127ec5bc8eb4e66d1ce3a67bea46f59006.zip |
LibJS: Support @@toPrimitive in ToPrimitive abstract operation
Fixes #3961.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h index 3914232306..1261bbfa65 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.h +++ b/Userland/Libraries/LibJS/Runtime/Value.h @@ -248,7 +248,7 @@ public: String to_string(GlobalObject&, bool legacy_null_to_empty_string = false) const; PrimitiveString* to_primitive_string(GlobalObject&); - Value to_primitive(PreferredType preferred_type = PreferredType::Default) const; + Value to_primitive(GlobalObject&, PreferredType preferred_type = PreferredType::Default) const; Object* to_object(GlobalObject&) const; Value to_numeric(GlobalObject&) const; Value to_number(GlobalObject&) const; |