mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-08 09:11:01 +00: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.
5 lines
158 B
JavaScript
5 lines
158 B
JavaScript
test("overwriting this during function call still binds the original", () => {
|
|
let tmp = new Map();
|
|
// prettier-ignore
|
|
tmp.set("", tmp = []);
|
|
});
|