Calling typed array constructors without new will throw

Published: | Categories: JavaScript


As part of the ECMAScript 2015 (ES6) compliance, Firefox now throws a TypeError if one of the typed array constructors, including Uint8Array, Int16Array and Float64Array, or ArrayBuffer is called without using the new operator.

All built-in ES6 constructors are hereby throwing when called without new.