mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
As shown in the test added by this patch, it was possible to re-assign the `this` value of a member function call while it was executing. Let's copy the original this value like we already do with the callee. Fixes #2226.
6 lines
158 B
JavaScript
6 lines
158 B
JavaScript
test("overwriting this during function call still binds the original", () => {
|
|
let tmp = new Map();
|
|
// prettier-ignore
|
|
tmp.set("", tmp = []);
|
|
});
|