infernu icon indicating copy to clipboard operation
infernu copied to clipboard

new keyword can't be used with non-explicit constructor

Open sinelaw opened this issue 9 years ago • 0 comments

tests/valid/new-func.js fails, because this function:

function mkn(f, a) { return new f(a); }

Can't really be used due to automatic row-closing (f is inferred to have this of type {})

sinelaw avatar Mar 23 '15 22:03 sinelaw