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

@JSBody Javadoc #973

Open
hontvari opened this issue Nov 23, 2024 · 2 comments
Open

@JSBody Javadoc #973

hontvari opened this issue Nov 23, 2024 · 2 comments

Comments

@hontvari
Copy link
Contributor

This text is included on the @JSBody Javadoc:

Marks abstract member method as a JavaScript method. This is equivalent to the following:
@JSBody(params = ..., script = "return new this. methodName(...);")

It seems to me that this is not correct, but I only have basic Javascript knowledge. Looking at for example WebGLRenderingContext this annotation does not make the function create a new object.

@konsoletyper
Copy link
Owner

It's a mistake in javadoc. new should not be here. Please, read my answer to another issue you created: #970

@hontvari
Copy link
Contributor Author

Thank you, I understand now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants