TStr TNodeJsUtil::GetClass(const v8::Handle<v8::Object> Obj) { v8::Isolate* Isolate = v8::Isolate::GetCurrent(); v8::HandleScope HandleScope(Isolate); v8::Local<v8::Value> ClassNm = Obj->GetHiddenValue(v8::String::NewFromUtf8(Isolate, "class")); const bool EmptyP = ClassNm.IsEmpty(); if (EmptyP) { return ""; } v8::String::Utf8Value Utf8(ClassNm); return TStr(*Utf8); }
v8::Local<v8::Value> getHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key) { return object->GetHiddenValue(key); }
v8::Handle<v8::Value> getHiddenCopyMethod(v8::Handle<v8::Object> prototype) { v8::Handle<v8::String> key = v8::String::New(hiddenCopyMethodName); return prototype->GetHiddenValue(key); }