construct-1.js (204B)
1 // Arrow functions are not constructors. 2 3 load(libdir + "asserts.js"); 4 5 var f = a => { this.a = a; }; 6 assertThrowsInstanceOf(() => new f, TypeError); 7 assertThrowsInstanceOf(() => new f(1, 2), TypeError);
tor-browserThe Tor Browser | |
| git clone https://git.dasho.dev/tor-browser.git | |
| Log | Files | Refs | README | LICENSE |