Source code

Revision control

Copy as Markdown

Other Tools

// Arrow functions are not constructors.
load(libdir + "asserts.js");
var f = a => { this.a = a; };
assertThrowsInstanceOf(() => new f, TypeError);
assertThrowsInstanceOf(() => new f(1, 2), TypeError);