[Javascript] Fix SWIG_exception() macro (#792)
Fix SWIG_exception() macro to return from the current function. Fixes #789, reported by Julien Dutriaux.
This commit is contained in:
parent
26bbc96d58
commit
b138f054e5
8 changed files with 40 additions and 3 deletions
|
|
@ -36,6 +36,7 @@ static SwigV8ReturnValue $jswrapper(const SwigV8Arguments &args) {
|
|||
SWIGV8_HANDLESCOPE();
|
||||
|
||||
SWIG_exception(SWIG_ERROR, "Class $jsname can not be instantiated");
|
||||
fail:
|
||||
SWIGV8_RETURN(SWIGV8_UNDEFINED());
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue