188.8.131.52.1 TypedArray ( length )
184.108.40.206.2 TypedArray ( typedArray )
220.127.116.11.3 TypedArray ( array )
the algorithm refers to "this function object", which is not defined.
Analogy with "this Date object" of 15.9.5 would suggest that it means:
the object that is the 'this' value for the invocation of the function
but this is presumably not the case, because each of the 4 algorithms,
prior to referring to "this function object", has already referred to
"the 'this' value" and found it wanting.
My guess is that "this function object" means:
the function object whose [[Call]] internal method
is the "current" algorithm
It would be good if the spec defined a term for this (generalized to any internal method). E.g., "owner object".
Section 18.104.22.168 says:
In addition to its parameters, an internal method always has access to
the object upon which it is invoked as a method.
To this, you could add something like:
Specifically, when the spec refers to calling/invoking/performing
a particular internal method of an object, [the algorithm bound to]
that internal method can refer to that object as the *owner object*.
(Is this the same concept as 22.214.171.124's "target"? Note that the word "target" is used with other senses elsewhere in the spec, but the word "owner" has the advantage of not being used at all yet in the spec.)
Let F be this function object.
Let F be the owner object.
Assert: F is a function object.
I think it's also the case that occurrences of
the Foo function object on which the 'new' operator was applied
could be replaced by just
the owner object
Ditto references to "this function" in:
126.96.36.199 Array ( [ item1 [ , item2 [ , [...] ] ] ] )
188.8.131.52 Array (len)
184.108.40.206: "the Error function object"
220.127.116.11.1: "this NativeError function object"
18.104.22.168.1: "this NativeError function object"
22.214.171.124: "this RegExp function object"
In a related bit of terminology, every occurrence of "this Function object" is in a pair of steps of the form:
a. Let F be this function object.
b. Let argumentsList be the argumentsList argument of
the [[Call]] internal method that invoked F.
But it seems to me that that phrase:
"the [[Call]] internal method that invoked F"
is incorrect: the [[Call]] internal method doesn't *invoke* F,
it merely belongs to F, and it is invoked as a consequence of F being invoked.
re comment 1:
The phrase "this function object" was mostly eliminated in rev16, then completely gone in rev19.
re comment 2:
rev24 has 3 occurrences of "Let /F/ be this function.":
126.96.36.199 / step 5.a
188.8.131.52 / step 5.a
184.108.40.206 / step 5.a
220.127.116.11 / step 15.a
18.104.22.168 / step 15.a
have "Let /C/ be the function that is currently being evaluated."
re comment 3:
22.214.171.124 / step 1: "this Error function object"
126.96.36.199.1 / step 1: "this /NativeError/ function object"
188.8.131.52.2 / step 1: "this /NativeError/ function object"
184.108.40.206 / step 1: "this RegExp function object"
re comment 4:
rev24 has, in 220.127.116.11 / step 9:
Let /argumentsList/ be the /argumentsList/ argument of
the [[Call]] internal method that invoked /F/.
fixed in rev26 editor's draft
in 8.3 defined the term "active function" and used in in all the remaining situations "this function object", etc. situations.
in rev26 draft