を使用してv8 version 3.14.5.9
います。とのそれnodejs is 0.10.17
。
私のC ++アドオンでは、別のスレッドを開始し、その上でコンストラクターが次のオブジェクトを作成しようとします:
class ConstructorRunningOnSeparateThread {
v8::Persistent<v8::Context> context;
public:
ConstructorRunningOnSeparateThread() {
v8::Locker locker;
v8::HandleScope handle_scope;//(isolate_);
v8::Local<v8::ObjectTemplate> globalTemplate = v8::ObjectTemplate::New();
globalTemplate->Set(v8::String::New("myversion"), v8::FunctionTemplate::New(NodeVersion));
context_ = v8::Context::New(nullptr, globalTemplate);
// ^^^^^-------------------- EXCEPTION HERE
if (context.IsEmpty()) {
fprintf(stderr, "Error creating context\n");
}
}
}
で例外が発生していv8::Context::New()
ます。
助けてください。
よろしくお願いします。