diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-10-01 08:03:39 +0330 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-10-01 09:20:25 +0330 |
commit | 36516a4c47325bf2f5ea45f40412559fd72b02d6 (patch) | |
tree | e0635d380a885bfc9979367237158f82838e1b8e /Userland/Libraries/LibJS/Runtime/Shape.h | |
parent | db98ed5ed0ba175e6f4c413750ca05932818aa4b (diff) | |
download | serenity-36516a4c47325bf2f5ea45f40412559fd72b02d6.zip |
LibJS: Take a pointer in get_or_prune_cached_prototype_transition()
Prototypes can be set to null, and while the previous version also kinda
allowed null (by not reading through the null reference), it was making
UBSAN very sad.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Shape.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Shape.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Shape.h b/Userland/Libraries/LibJS/Runtime/Shape.h index a7b8f4bca5..89d29394f9 100644 --- a/Userland/Libraries/LibJS/Runtime/Shape.h +++ b/Userland/Libraries/LibJS/Runtime/Shape.h @@ -91,7 +91,7 @@ private: virtual void did_become_zombie() override; Shape* get_or_prune_cached_forward_transition(TransitionKey const&); - Shape* get_or_prune_cached_prototype_transition(Object& prototype); + Shape* get_or_prune_cached_prototype_transition(Object* prototype); void ensure_property_table() const; |