bool V8PerContextData::init() { v8::Handle<v8::String> prototypeString = v8::String::NewSymbol("prototype"); if (prototypeString.IsEmpty()) return false; V8_STORE_PRIMORDIAL(error, Error); V8_STORE_PRIMORDIAL(object, Object); return true; }
bool V8PerContextData::init() { v8::Handle<v8::Context> context = m_context.newLocal(m_isolate); V8PerContextDataHolder::from(context)->setPerContextData(this); v8::Handle<v8::String> prototypeString = v8AtomicString(m_isolate, "prototype"); if (prototypeString.IsEmpty()) return false; V8_STORE_PRIMORDIAL(error, Error); return true; }
bool V8PerContextData::init() { v8::Handle<v8::Context> context = v8::Local<v8::Context>::New(m_isolate, m_context); context->SetAlignedPointerInEmbedderData(v8ContextPerContextDataIndex, this); v8::Handle<v8::String> prototypeString = v8::String::NewSymbol("prototype"); if (prototypeString.IsEmpty()) return false; V8_STORE_PRIMORDIAL(error, Error); return true; }