blob: 0871888e3da1761b5cf4bf08bd31bffa224984b0 (
plain)
1
2
3
4
5
6
7
|
// 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);
|