mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
The `[[GetOwnProperty]]` internal method invocation in `OrdinarySetWithOwnDescriptor` was being invocated again with the same parameters in the `[[DefineOwnProperty]]` internal method that is also later called in `OrdinarySetWithOwnDescriptor`. The `PlatformObject.[[DefineOwnProperty]]` has similair logic. This change adds an optional parameter to the `[[DefineOwnProperty]]` internal method so the results of the previous `[[GetOwnProperty]]` internal method invocation can be re-used. (cherry picked from commit 69f96122b6150c22d1e8dc848c097cead2d2ae3f)
13 KiB
13 KiB