archives

« Bugzilla Issues Index

#4363 — Typo in referring to TypedArray constructor in 22.2.6.2


```
22.2.6.2 TypedArray.prototype.constructor
The initial value of a TypedArray.prototype.constructor is the corresponding %TypedArray% intrinsic object.
```

In the above text, all three instances of TypedArray were italicized. In the spec, italicized TypedArray refers to a specific constructor such as Uint8Array. Non-italicized %TypedArray% refers to the __proto__ of these constructors. I believe in this case, the italicized %TypedArray% should simply be italicized TypedArray, as the constructor should be the particular constructor, not the proto of the constructor.


The italicized %TypedArray% is a meta variable representing all of the specific intrinsic names of the the built-in constructors, such as %Uint8Array%, $Float32arrau%, etc.


This is the only instance in the spec where I see %TypedArray% italicized. If it is meant to stand in for individual constructors, why not just call it TypedArray (italicized) as the earlier references to those individual constructors are called? The built-in constructors are called Uint8Array etc, not %Uint8Array%.


(In reply to Daniel Ehrenberg from comment #2)
> This is the only instance in the spec where I see %TypedArray% italicized.
> If it is meant to stand in for individual constructors, why not just call it
> TypedArray (italicized) as the earlier references to those individual
> constructors are called? The built-in constructors are called Uint8Array
> etc, not %Uint8Array%.

Uint8Array is the global object property name. %Uint8Array% is the specification's internal name for the intrinsic object that is the initial value of that property. See Table 7 http://people.mozilla.org/~jorendorff/es6-draft.html#table-7


Oh, sorry for the misunderstanding.