Provide an Isolate for v8::ObjectTemplate::New.

R=jochen@chromium.org
TBR=eroman@chromium.org
BUG=324225

Review URL: https://codereview.chromium.org/127923002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243555 0039d316-1c4b-4281-b951-d872f2087c98
parent 5dae73c7
......@@ -24,7 +24,8 @@ const char* kHandlerFunction = "handler_function";
ObjectBackedNativeHandler::ObjectBackedNativeHandler(
ChromeV8Context* context)
: context_(context),
object_template_(v8::ObjectTemplate::New()) {
object_template_(v8::ObjectTemplate::New(
context->v8_context()->GetIsolate())) {
}
ObjectBackedNativeHandler::~ObjectBackedNativeHandler() {
......
......@@ -165,7 +165,7 @@ class V8VarConverterTest : public testing::Test {
virtual void SetUp() {
ProxyLock::Acquire();
v8::HandleScope handle_scope(isolate_);
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate_);
context_.Reset(isolate_, v8::Context::New(isolate_, NULL, global));
}
virtual void TearDown() {
......
......@@ -53,7 +53,7 @@ class V8ValueConverterImplTest : public testing::Test {
protected:
virtual void SetUp() {
v8::HandleScope handle_scope(isolate_);
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate_);
context_.Reset(isolate_, v8::Context::New(isolate_, NULL, global));
}
......
......@@ -422,7 +422,8 @@ class ProxyResolverV8::Context {
v8_this_.Reset(isolate_, v8::External::New(isolate_, this));
v8::Local<v8::External> v8_this =
v8::Local<v8::External>::New(isolate_, v8_this_);
v8::Local<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New();
v8::Local<v8::ObjectTemplate> global_template =
v8::ObjectTemplate::New(isolate_);
// Attach the javascript bindings.
v8::Local<v8::FunctionTemplate> alert_template =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment