Chromium Code Reviews| Index: test/cctest/test-unboxed-doubles.cc |
| diff --git a/test/cctest/test-unboxed-doubles.cc b/test/cctest/test-unboxed-doubles.cc |
| index 41ce56388e92012efb97146b88beef64b034ca10..fe5b84c5b02f6a2546e280b8e58ae5ed6998598d 100644 |
| --- a/test/cctest/test-unboxed-doubles.cc |
| +++ b/test/cctest/test-unboxed-doubles.cc |
| @@ -2,6 +2,9 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +// TODO(mythria): Remove this define after this flag is turned on globally |
| +#define V8_IMMINENT_DEPRECATION_WARNINGS |
| + |
| #include <stdlib.h> |
| #include <utility> |
| @@ -50,8 +53,12 @@ static Handle<String> MakeName(const char* str, int suffix) { |
| Handle<JSObject> GetObject(const char* name) { |
| - return v8::Utils::OpenHandle( |
| - *v8::Handle<v8::Object>::Cast(CcTest::global()->Get(v8_str(name)))); |
| + v8::Local<v8::Context> context = |
| + reinterpret_cast<v8::Isolate*>( |
| + v8::Utils::OpenHandle(*CcTest::global())->GetIsolate()) |
| + ->GetCurrentContext(); |
|
rmcilroy
2015/09/15 10:29:47
ditto
mythria
2015/09/17 11:21:48
Done.
|
| + return v8::Utils::OpenHandle(*v8::Local<v8::Object>::Cast( |
| + CcTest::global()->Get(context, v8_str(name)).ToLocalChecked())); |
| } |