[[Construct]]: extends the check against non-undefined primitive by claudepache · Pull Request #469 · tc39/ecma262

https://github.com/tc39/ecma262/pull/469#issuecomment-221006335

This issue related with primitive values from class constructors.

class MyClass {
	constructor() { return 42 } 
}
new MyClass();// `TypeError`

should throw TypeError.

TC39 discuss about this and accepting this PR.




blog comments powered by Disqus