Hello. I have following situation. I have 2 classes (e.g. Parent and 
Child). Parent has method "DoSmth", and Child have method "DoSmthElse". I 
create two templates, like these:
auto parentObj = ObjectTemplate::New(isolate);
Local<FunctionTemplate> SmthCallBack = FunctionTemplate::New(isolate, 
FuncCallBack, External::New(isolate, DoSmth));
parentObj->Set(String::NewFromUtf8(isolate, "DoSmth", NewStringType::kNormal
).ToLocalChecked(), SmthCallBack);

auto childObj = ObjectTemplate::New(isolate);
Local<FunctionTemplate> SmthElseCallBack = FunctionTemplate::New(isolate, 
FuncCallBack, External::New(isolate, DoSmthElse));
childObj->Set(String::NewFromUtf8(isolate, "DoSmthElse", NewStringType::
kNormal).ToLocalChecked(), SmthElseCallBack);

And my question is: Is there any way to inherit method "DoSmth" from Parent 
to Child (and other methods if they exists)?
Thanks.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to