generate v8-3.19.x compatible code

This commit is contained in:
Vladimir Menshakov 2013-07-11 16:41:40 +04:00 committed by Oliver Buchtala
commit 9111773400
3 changed files with 16 additions and 19 deletions

View file

@ -3,14 +3,14 @@
/**
* Creates a class template for a class with specified initialization function.
*/
v8::Persistent<v8::FunctionTemplate> SWIGV8_CreateClassTemplate(const char* symbol) {
v8::Handle<v8::FunctionTemplate> SWIGV8_CreateClassTemplate(const char* symbol) {
v8::Local<v8::FunctionTemplate> class_templ = v8::FunctionTemplate::New();
class_templ->SetClassName(v8::String::NewSymbol(symbol));
v8::Handle<v8::ObjectTemplate> inst_templ = class_templ->InstanceTemplate();
inst_templ->SetInternalFieldCount(1);
return v8::Persistent<v8::FunctionTemplate>::New(class_templ);
return class_templ;
}
/**