Skip to content

ctor invocation w/o new #1

akapav opened this Issue Mar 17, 2010 · 1 comment

2 participants

akapav commented Mar 17, 2010

it is still unclear what is the proper behavior when constructors are
invoked without new. at the moment the only way to distinct whether
function is invoked from within new expression is to check the value
of this. if this equals global object most likely constructor is
invoked as a plain function

marijnh commented Mar 2, 2011

We follow the standard here now.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.