Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support typescript class constructor #1143

Merged
merged 1 commit into from Aug 3, 2017
Merged

support typescript class constructor #1143

merged 1 commit into from Aug 3, 2017

Conversation

OniVe
Copy link
Contributor

@OniVe OniVe commented Jul 26, 2017

For objects with a constructor like:
var MyClass = (function () { function MyClass(foo, bar) { this.foo = foo; this.bar = bar; } return MyClass; }());
Condition (obj.constructor === Object) fails.

support typescript class constructor
@johnleider
Copy link
Member

Curious, why does that cause it to fail?

@OniVe
Copy link
Contributor Author

OniVe commented Jul 28, 2017

Here's a test: codepen.io

@lock
Copy link

lock bot commented Apr 16, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants