Fix bug in v8 ctor emitter.
This bug leaded to flaky crashes of v8 engine. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2893df9f73
commit
a4f8e4c1c3
2 changed files with 15 additions and 8 deletions
|
|
@ -5,7 +5,8 @@ v8::Handle<v8::Value> $jswrapper(const v8::Arguments& args) {
|
|||
$jslocals
|
||||
$jscode
|
||||
|
||||
return SWIG_V8_NewPointerObj(result, SWIGTYPE_$jsmangledtype, SWIG_POINTER_OWN);
|
||||
SWIG_V8_SetPrivateData(self, result, SWIGTYPE_$jsmangledtype, SWIG_POINTER_OWN);
|
||||
return scope.Close(self);
|
||||
|
||||
goto fail;
|
||||
fail:
|
||||
|
|
@ -54,10 +55,12 @@ fail:
|
|||
return scope.Close(v8::Undefined());
|
||||
}%}
|
||||
|
||||
/*
|
||||
%fragment ("JS_mainctordefn", "templates")
|
||||
%{
|
||||
// TODO: implement JS_mainctordefn
|
||||
%}
|
||||
*/
|
||||
|
||||
%fragment ("JS_ctor_dispatch_case", "templates")
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue