On Fri Jun 2 14:20:08 2023 +0000, Gabriel Ivăncescu wrote:
Yeah that's the problem, the name lookup. It would need special casing where it's done, which I think is more work than just special casing it into the arguments object itself (since it's specific to it, anyway). BTW is it just detached scopes? Doesn't it apply also for accessing arguments' variables via name (as "local vars")? Modifying an arg syncs it with the arguments object.
I'm not sure what you mean, as long as arguments are on the stack, both accessing by name and via arguments object operate on stack.