diff --git a/Lib/javascript/v8/javascriptcode.swg b/Lib/javascript/v8/javascriptcode.swg index f86198622..3dbd12e09 100644 --- a/Lib/javascript/v8/javascriptcode.swg +++ b/Lib/javascript/v8/javascriptcode.swg @@ -57,7 +57,7 @@ v8::Handle $jswrapper(const v8::Arguments& args) { SWIG_exception_fail(SWIG_ERROR, "Illegal arguments for contruction of $jsmangledname"); fail: - scope.Close(v8::Undefined()); + return scope.Close(v8::Undefined()); } %}