archives

« Bugzilla Issues Index

#2559 — Need to define what "is not present" tests for arguments mean


In particular, need to define that these are arguments.length checks and that they supersede the normal "missing means undefined" rule.


How about this in clause 17, 4th paragraph (last sentence is new):

Unless otherwise specified in the description of a particular function, if a built-in function or constructor is given fewer arguments than the function is specified to require, the function or constructor shall behave exactly as if it had been given sufficient additional arguments, each such argument being the undefined value. Such missing arguments are considered to be “not present” and may be identified in that manner by specification algorithms.

fixed in rev23 editor's draft


That helps a lot, yes.


fixed in rev23 draft