added missing scope.Close()
This commit is contained in:
parent
fe25e2dfc8
commit
9b6a4870dd
1 changed files with 2 additions and 1 deletions
|
|
@ -4,13 +4,14 @@
|
||||||
* Creates a class template for a class with specified initialization function.
|
* Creates a class template for a class with specified initialization function.
|
||||||
*/
|
*/
|
||||||
v8::Handle<v8::FunctionTemplate> SWIGV8_CreateClassTemplate(const char* symbol) {
|
v8::Handle<v8::FunctionTemplate> SWIGV8_CreateClassTemplate(const char* symbol) {
|
||||||
|
v8::HandleScope scope;
|
||||||
v8::Local<v8::FunctionTemplate> class_templ = v8::FunctionTemplate::New();
|
v8::Local<v8::FunctionTemplate> class_templ = v8::FunctionTemplate::New();
|
||||||
class_templ->SetClassName(v8::String::NewSymbol(symbol));
|
class_templ->SetClassName(v8::String::NewSymbol(symbol));
|
||||||
|
|
||||||
v8::Handle<v8::ObjectTemplate> inst_templ = class_templ->InstanceTemplate();
|
v8::Handle<v8::ObjectTemplate> inst_templ = class_templ->InstanceTemplate();
|
||||||
inst_templ->SetInternalFieldCount(1);
|
inst_templ->SetInternalFieldCount(1);
|
||||||
|
|
||||||
return class_templ;
|
return scope.Close(class_templ);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue