Index: src/api.h |
diff --git a/src/api.h b/src/api.h |
index 7a688caeee03a5951673d3d1694e78e09e55cf9d..ccede0d2d0ec7ec79d75fa1742dee540c53ada70 100644 |
--- a/src/api.h |
+++ b/src/api.h |
@@ -370,8 +370,7 @@ MAKE_TO_LOCAL(ToLocal, DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) |
const v8::From* that, bool allow_empty_handle) { \ |
EXTRA_CHECK(allow_empty_handle || that != NULL); \ |
EXTRA_CHECK(that == NULL || \ |
- (*reinterpret_cast<v8::internal::Object**>( \ |
- const_cast<v8::From*>(that)))->Is##To()); \ |
+ (*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \ |
return v8::internal::Handle<v8::internal::To>( \ |
reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ |
} |