| Index: test/cctest/test-log.cc
|
| diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc
|
| index 89b11c9d869b557d159eb97fb23c1afc527da52c..51a0fc48901cda69fb2b59994eb2b9b07cb66d97 100644
|
| --- a/test/cctest/test-log.cc
|
| +++ b/test/cctest/test-log.cc
|
| @@ -34,6 +34,11 @@
|
| #include <cmath>
|
| #endif // __linux__
|
|
|
| +// TODO(dcarney): remove
|
| +#define V8_ALLOW_ACCESS_TO_PERSISTENT_ARROW
|
| +#define V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR
|
| +#define V8_ALLOW_ACCESS_TO_PERSISTENT_IMPLICIT
|
| +
|
| #include "v8.h"
|
| #include "log.h"
|
| #include "cpu-profiler.h"
|
| @@ -62,7 +67,7 @@ class ScopedLoggerInitializer {
|
| // Need to run this prior to creating the scope.
|
| trick_to_run_init_flags_(init_flags_(prof_lazy)),
|
| scope_(v8::Isolate::GetCurrent()),
|
| - env_(v8::Context::New()),
|
| + env_(*v8::Context::New()),
|
| logger_(i::Isolate::Current()->logger()) {
|
| env_->Enter();
|
| }
|
| @@ -371,7 +376,7 @@ class SimpleExternalString : public v8::String::ExternalStringResource {
|
|
|
| TEST(Issue23768) {
|
| v8::HandleScope scope(v8::Isolate::GetCurrent());
|
| - v8::Handle<v8::Context> env = v8::Context::New();
|
| + v8::Handle<v8::Context> env = v8::Context::New(v8::Isolate::GetCurrent());
|
| env->Enter();
|
|
|
| SimpleExternalString source_ext_str("(function ext() {})();");
|
| @@ -405,7 +410,8 @@ TEST(LogCallbacks) {
|
| v8::FunctionTemplate::New());
|
| obj->SetClassName(v8_str("Obj"));
|
| v8::Handle<v8::ObjectTemplate> proto = obj->PrototypeTemplate();
|
| - v8::Local<v8::Signature> signature = v8::Signature::New(obj);
|
| + v8::Local<v8::Signature> signature =
|
| + v8::Signature::New(v8::Handle<v8::FunctionTemplate>(*obj));
|
| proto->Set(v8_str("method1"),
|
| v8::FunctionTemplate::New(ObjMethod1,
|
| v8::Handle<v8::Value>(),
|
|
|