Index: src/api.h |
diff --git a/src/api.h b/src/api.h |
index 07723cb32c3a6dfe7cf1de3c7114fdda149159b8..f41c96ede8bf9e15dc0814a72d0b9551e0afbb73 100644 |
--- a/src/api.h |
+++ b/src/api.h |
@@ -115,7 +115,8 @@ void NeanderObject::set(int offset, v8::internal::Object* value) { |
template <typename T> static inline T ToCData(v8::internal::Object* obj) { |
STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); |
return reinterpret_cast<T>( |
- reinterpret_cast<intptr_t>(v8::internal::Foreign::cast(obj)->address())); |
+ reinterpret_cast<intptr_t>( |
+ v8::internal::Foreign::cast(obj)->foreign_address())); |
} |