Strangeness in CreateArgumentsObject definition

# Oliver Hunt (15 years ago)

Section 10.6 describes the creation of the arguments object, most of which makes sense but i think there's a typo in step 14.

Step 13 describes the definition of the callee property of the arguments object if strict == false Step 14 describes the creation of the caller property if strict == true

I assume that step 14 should be referring to the callee property, otherwise we're saying in strict mode arguments does not have a "callee" property, but does have a "caller" property that throws on all accesses.

# Mark S. Miller (15 years ago)

I believe the spec is correct.

In non-strict mode, only callee is specified, although many implementations may provide a de-facto caller as well. In strict mode, both callee and caller are poisoned. arguments.caller is poisoned in step 14.b as you noticed. On the next page, arguments.callee is poisoned in step 14.c

# Oliver Hunt (15 years ago)

Whoops, my bad curse you page breaks