Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove arguments.caller from the spec #670

Closed
claudepache opened this issue Aug 17, 2016 · 2 comments
Closed

Remove arguments.caller from the spec #670

claudepache opened this issue Aug 17, 2016 · 2 comments

Comments

@claudepache
Copy link
Contributor

claudepache commented Aug 17, 2016

Note. Not to be confused with Function#caller.


The spec acknowledges that arguments.caller “has historically been provided as an implementation-defined extension by some ECMAScript implementations”.

However, nowadays this historical wart is not found in any browser since long ago, e.g.:

I think one can clean the spec by removing all special cases around arguments.caller. As far as I can see, the modifications would be:

Concretely, for the implementations not supporting the arguments.caller extension, the changes resume to removing the "caller" poison-pill from their unmapped Arguments objects.

@erights
Copy link

erights commented Sep 12, 2016

I just tested and am surprised to see that this is correct. Good riddance! Now that arguments.caller is totally and permanently dead, I agree we no longer need to guard against it. I support this removal.

@leobalter
Copy link
Member

I'll add this to the agenda for the next meeting for the consensus formalities.

@claudepache do you want to prepare a PR for this? Otherwise I can do it, also checking test262.

bterlson added a commit to bterlson/ecma262 that referenced this issue Sep 12, 2016
Implementations have not had this extension for many years so continuing
to poison pill it is needless. This removes all mention of arguments
object's "caller" property with the exception of a note that gives a bit
of history (mostly so people can still ctrl+f "caller").

Closes tc39#670.
bterlson added a commit to bterlson/ecma262 that referenced this issue Sep 12, 2016
Implementations have not had this extension for many years so continuing
to poison pill it is needless. This removes all mention of arguments
object's "caller" property with the exception of a note that gives a bit
of history (mostly so people can still ctrl+f "caller").

Closes tc39#670.
bterlson added a commit that referenced this issue Sep 29, 2016
Implementations have not had this extension for many years so continuing
to poison pill it is needless. This removes all mention of arguments
object's "caller" property with the exception of a note that gives a bit
of history (mostly so people can still ctrl+f "caller").

Closes #670.
kisg pushed a commit to paul99/v8mips that referenced this issue Nov 4, 2016
This was removed from ECMAScript in the September 2016 TC39 meeting, see tc39/ecma262#670.

BUG=v8:5535

Review-Url: https://codereview.chromium.org/2430383004
Cr-Commit-Position: refs/heads/master@{#40770}
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

No branches or pull requests

3 participants