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

Implement Object.getClass() #95

npiguet opened this issue Jul 27, 2015 · 0 comments


Copy link

commented Jul 27, 2015

Currently, any attempt at using instance.getClass() results in a getClass is undefined error. This method is super useful and is already correctly typed.

The current workaround for this is JSObjectAdapter.$constructor(instance), which returns Object and is translated into instance.constructor. The return type is not so great, and you need to have knowledge of the internals of ST-JS to know about it.

Note that MyClass.class is translated to just MyClass (which is the constructor function)

@npiguet npiguet closed this in ef5f606 Jul 27, 2015

npiguet added a commit that referenced this issue Jul 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.