Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up`arguments` ordinary vs exotic difference #696
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
9.4.4.7 and 9.4.4.8 respectively create the ordinary and exotic variants of argument objects. |
isiahmeadows commentedSep 23, 2016
I'm guessing the builtin methods for
argumentsexotic objects described here don't apply toargumentsordinary objects, but it didn't seem very clear to me that the distinction was between strictargumentsobjects that were otherwise array-like ordinary objects and sloppyargumentsexotic objects which have those builtin methods.