Closed shakiba closed 1 year ago
When the code is compiled to es, class field initialization is moved to top of constructor, before instance of check. So the code breaks if it is called without new.
instance of
new
When the code is compiled to es, class field initialization is moved to top of constructor, before
instance of
check. So the code breaks if it is called withoutnew
.