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

JavaScriptCore: exception/error handling is missing necessary stuff #44

Open
ewmailing opened this issue May 20, 2014 · 0 comments
Open

Comments

@ewmailing
Copy link

When an error occurs in the SWIG wrapper functions, it creates a string which is used as the exception. This is insufficient for being able to get the file name and line number to track down the error in your JavaScript code.

Additionally, JSCore expects an actual JSValueRef to be returned and not NULL, even on the error case.

In my JSBugs2 branch at https://github.com/ewmailing/swig, I have fixes for this.

The commit logs contain a lot more information. I will submit a pull request shortly.

ewmailing/swig@be938aa
ewmailing/swig@8b3bd4f

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

1 participant