diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-05 12:57:17 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-05 13:53:30 +0100 |
commit | fe9dc473204d79e868dbc28c70976be3a9d3a64b (patch) | |
tree | 491914df08c4712b652c2ef02a0f094c048d9fdd /Userland/Libraries/LibCards/Card.cpp | |
parent | 83f3f396add7f17b606cb156b4afe653c4dc8bda (diff) | |
download | serenity-fe9dc473204d79e868dbc28c70976be3a9d3a64b.zip |
LibJS: Make FunctionObject's m_home_object an Object*, not Value
As the name implies (and the spec confirms), this is only ever going to
be an object or "nothing", or "undefined" in the spec. By taking this
literally and updating a check to check for `is_undefined()`, we
introduced a bug - the value was still initialized as an empty value.
Instead, use a pointer to an Object - either we have one, or we don't.
Fixes #8448.
Diffstat (limited to 'Userland/Libraries/LibCards/Card.cpp')
0 files changed, 0 insertions, 0 deletions