I have the same problem:
var http = new HttpClient;
(http instanceof HttpClient) returns false
(http instanceof Object) returns true;
Here is now I expose the constructor in C++:
Handle<FunctionTemplate> ctor = FunctionTemplate::New(jsCtorCallback,
External::New(userdata));
ctor->SetClassName(String::New(T.typeName));
objTempl = ctor->PrototypeTemplate();
customizeObjectTemplate(objTempl);
global->Set(String::New(T.typeName), ctor->GetFunction());
Any ideas?
Thanks in advance
Alex
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users