- use
new.target
to check if the constructor was called with thenew
keyword, instead of using a Proxy - various changes to make things easier to read and to match more closely with native classes
new.target
to check if the constructor was called with the new
keyword, instead of using a Proxy