Ben,
How am I supposed to expose the class to the global object?
I have this:
// create and bind XMLBuilder function
v8::Local<v8::FunctionTemplate> bldrTemp =
v8::FunctionTemplate::New(isolate,createBuilder);
v8::Local<v8::String> bldrLabel =
v8::String::NewFromUtf8(isolate, "XMLBuilder");
bldrTemp->SetClassName(bldrLabel);
global->Set(bldrLabel,bldrTemp);
> var b = new XMLBuilder();
> b instanceof XMLBuilder;
false
> Object.prototype.toString.call(b);
[object XMLBuilder]