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

`arguments` ordinary vs exotic difference #696

Open
isiahmeadows opened this Issue Sep 23, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@isiahmeadows

isiahmeadows commented Sep 23, 2016

I'm guessing the builtin methods for arguments exotic objects described here don't apply to arguments ordinary objects, but it didn't seem very clear to me that the distinction was between strict arguments objects that were otherwise array-like ordinary objects and sloppy arguments exotic objects which have those builtin methods.

@allenwb

This comment has been minimized.

Show comment
Hide comment
@allenwb

allenwb Sep 23, 2016

Member

On Sep 23, 2016, at 2:46 PM, Isiah Meadows notifications@github.com wrote:

I'm guessing the builtin methods for arguments exotic objects described here https://tc39.github.io/ecma262/#sec-arguments-exotic-objects don't apply to arguments ordinary objects, but it didn't seem very clear to me that the distinction was between strict arguments objects that were otherwise array-like ordinary objects and sloppy arguments exotic objects which have those builtin methods.

You shouldn’t have to guess. The first paragraph of 9.4.4 says: “Depending upon the characteristics of the function definition, its arguments object is either an ordinary object or an arguments exotic object. “

9.4.4.7 and 9.4.4.8 respectively create the ordinary and exotic variants of argument objects.

Member

allenwb commented Sep 23, 2016

On Sep 23, 2016, at 2:46 PM, Isiah Meadows notifications@github.com wrote:

I'm guessing the builtin methods for arguments exotic objects described here https://tc39.github.io/ecma262/#sec-arguments-exotic-objects don't apply to arguments ordinary objects, but it didn't seem very clear to me that the distinction was between strict arguments objects that were otherwise array-like ordinary objects and sloppy arguments exotic objects which have those builtin methods.

You shouldn’t have to guess. The first paragraph of 9.4.4 says: “Depending upon the characteristics of the function definition, its arguments object is either an ordinary object or an arguments exotic object. “

9.4.4.7 and 9.4.4.8 respectively create the ordinary and exotic variants of argument objects.

@bterlson bterlson added the question label Sep 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment