Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index 892a54222931bb1a4561324fef16ee1d93864750..9883bfada780831513b4a2868dc22efec9a25e57 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -370,7 +370,8 @@ TEST(LogCallbacks) { |
ScopedLoggerInitializer initialize_logger(false); |
v8::Persistent<v8::FunctionTemplate> obj = |
- v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); |
+ v8::Persistent<v8::FunctionTemplate>::New(v8::Isolate::GetCurrent(), |
+ v8::FunctionTemplate::New()); |
obj->SetClassName(v8_str("Obj")); |
v8::Handle<v8::ObjectTemplate> proto = obj->PrototypeTemplate(); |
v8::Local<v8::Signature> signature = v8::Signature::New(obj); |
@@ -397,7 +398,7 @@ TEST(LogCallbacks) { |
CHECK_NE(NULL, StrNStr(log.start(), ref_data.start(), log.length())); |
- obj.Dispose(); |
+ obj.Dispose(v8::Isolate::GetCurrent()); |
} |
@@ -420,7 +421,8 @@ TEST(LogAccessorCallbacks) { |
ScopedLoggerInitializer initialize_logger(false); |
v8::Persistent<v8::FunctionTemplate> obj = |
- v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); |
+ v8::Persistent<v8::FunctionTemplate>::New(v8::Isolate::GetCurrent(), |
+ v8::FunctionTemplate::New()); |
obj->SetClassName(v8_str("Obj")); |
v8::Handle<v8::ObjectTemplate> inst = obj->InstanceTemplate(); |
inst->SetAccessor(v8_str("prop1"), Prop1Getter, Prop1Setter); |
@@ -454,7 +456,7 @@ TEST(LogAccessorCallbacks) { |
CHECK_NE(NULL, |
StrNStr(log.start(), prop2_getter_record.start(), log.length())); |
- obj.Dispose(); |
+ obj.Dispose(v8::Isolate::GetCurrent()); |
} |