Index: test/cctest/test-macro-assembler-mips.cc |
diff --git a/test/cctest/test-macro-assembler-mips.cc b/test/cctest/test-macro-assembler-mips.cc |
index 515bac9d3adfa0147ebc2299b34a341b26d6b2f8..3cb7dcdd32454751a23f069a502aa6d47adb4a06 100644 |
--- a/test/cctest/test-macro-assembler-mips.cc |
+++ b/test/cctest/test-macro-assembler-mips.cc |
@@ -144,9 +144,7 @@ static void TestNaN(const char *code) { |
v8::Local<v8::Script> script = v8::Script::Compile(v8_str(code)); |
v8::Local<v8::Object> result = v8::Local<v8::Object>::Cast(script->Run()); |
- // Have to populate the handle manually, as it's not Cast-able. |
- i::Handle<i::JSObject> o = |
- v8::Utils::OpenHandle<v8::Object, i::JSObject>(result); |
+ i::Handle<i::JSReceiver> o = v8::Utils::OpenHandle(*result); |
i::Handle<i::JSArray> array1(reinterpret_cast<i::JSArray*>(*o)); |
i::FixedDoubleArray* a = i::FixedDoubleArray::cast(array1->elements()); |
double value = a->get_scalar(0); |