archives

« Bugzilla Issues Index

#1676 — 15.13.5, 15.13.6: Constructor text no longer valid, `new` is necessary to create an instance


15.13.5.2 The ArrayBuffer Constructor:
> When ArrayBuffer is called as a function rather than as a constructor, it creates and initialises a new
> ArrayBuffer object. Thus the function call ArrayBuffer(…) is equivalent to the object creation expression
> new ArrayBuffer (…) with the same arguments.

15.13.6.4 The TypedArray Constructors:
> When a TypedArray constructor is called as a function rather than as a constructor, it creates and initialises a
> new TypedArray object. Thus the function call TypedArray (…) is equivalent to the object creation
> expression new TypedArray (…) with the same arguments.


But when ArrayBuffer(...) or TypedArray(...) is called as a function, it only initialises an object, it no longer creates a new instance.


fixed in rev17 editor's draft


fixed in rev17 editor's draft


fixed in rev17, August 23, 2013 draft