| Index: src/api.h
|
| diff --git a/src/api.h b/src/api.h
|
| index 62380ce651249d86548c37679c9b2deb248c1bfd..2f33599e427bd3c6cb17ecd333c2799481f4a0cf 100644
|
| --- a/src/api.h
|
| +++ b/src/api.h
|
| @@ -126,8 +126,9 @@ template <typename T> inline T ToCData(v8::internal::Object* obj) {
|
|
|
| template <typename T>
|
| inline v8::internal::Handle<v8::internal::Object> FromCData(T obj) {
|
| + v8::internal::Isolate* isolate = v8::internal::Isolate::Current();
|
| STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address));
|
| - return FACTORY->NewForeign(
|
| + return isolate->factory()->NewForeign(
|
| reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(obj)));
|
| }
|
|
|
|
|