Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index d76edf3e7c029d11190f6b0e658061b48d04b5f3..ac6b6722ac7d8524b3b6317816b4f49dbd9b51b3 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2628,9 +2628,10 @@ void V8::SetFailedAccessCheckCallbackFunction( |
} |
-void V8::AddObjectToGroup(void* group_id, Persistent<Object> obj) { |
- if (IsDeadCheck("v8::V8::AddObjectToGroup()")) return; |
- i::GlobalHandles::AddToGroup(group_id, reinterpret_cast<i::Object**>(*obj)); |
+void V8::AddObjectGroup(Persistent<Value>* objects, size_t length) { |
+ if (IsDeadCheck("v8::V8::AddObjectGroup()")) return; |
+ STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); |
+ i::GlobalHandles::AddGroup(reinterpret_cast<i::Object***>(objects), length); |
} |