Index: src/extensions/gc-extension.cc |
diff --git a/src/extensions/gc-extension.cc b/src/extensions/gc-extension.cc |
index 48e8c42057600530de93cd8b7a11714a96b57b64..238e305f3db712cbbb748dcec385077253b5516f 100644 |
--- a/src/extensions/gc-extension.cc |
+++ b/src/extensions/gc-extension.cc |
@@ -46,8 +46,8 @@ v8::Handle<v8::Value> GCExtension::GC(const v8::Arguments& args) { |
void GCExtension::Register() { |
- static GCExtension gc_extension; |
- static v8::DeclareExtension gc_extension_declaration(&gc_extension); |
+ static GCExtension* gc_extension = ::new GCExtension(); |
+ static v8::DeclareExtension gc_extension_declaration(gc_extension); |
} |
} } // namespace v8::internal |