Index: Source/modules/serviceworkers/ServiceWorker.h |
diff --git a/Source/modules/serviceworkers/ServiceWorker.h b/Source/modules/serviceworkers/ServiceWorker.h |
index b7fd80387c2b8754acd971aec78af200589a6c15..df5408560190d05dd42bc4beb75b67f4fd1b277f 100644 |
--- a/Source/modules/serviceworkers/ServiceWorker.h |
+++ b/Source/modules/serviceworkers/ServiceWorker.h |
@@ -56,6 +56,8 @@ public: |
// Eager finalization needed to promptly release owned WebServiceWorker. |
EAGERLY_FINALIZE(); |
+ // Override 'operator new' to enforce allocation of eagerly finalized object. |
+ DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); |
void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&); |
void terminate(ExceptionState&); |