Skip to content

Rename internal var arguments_ -> programArgs#26907

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:programArgs
Open

Rename internal var arguments_ -> programArgs#26907
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:programArgs

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 10, 2026

I'm not sure where this strange name originally came from but its notable enough to rename it something more consistent/meaningful.

There was one comment saying v8 uses arguments_ but that doesn't seem to be true:

$ ~/.jsvu/bin/v8 test.js xx
test.js:1: ReferenceError: arguments_ is not defined
console.log(arguments_);
            ^
ReferenceError: arguments_ is not defined
    at test.c:1:13

I'm not sure where this strange name originally came from but its
notable enough to rename it something more consistent/meaningful.

There was one comment saying `v8 uses arguments_` but that doesn't seem
to be true:

```
$ ~/.jsvu/bin/v8 test.js xx
test.js:1: ReferenceError: arguments_ is not defined
console.log(arguments_);
            ^
ReferenceError: arguments_ is not defined
    at test.c:1:13
```
@sbc100 sbc100 requested review from dschuff and kripken May 10, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant