Index: Source/core/events/MessageEvent.cpp |
diff --git a/Source/core/events/MessageEvent.cpp b/Source/core/events/MessageEvent.cpp |
index 46b1ce3d53d08c39bd6fb27f38aef9de2d276906..370f20741ca57304a0e0868791085474d4faab84 100644 |
--- a/Source/core/events/MessageEvent.cpp |
+++ b/Source/core/events/MessageEvent.cpp |
@@ -190,7 +190,17 @@ void MessageEvent::trace(Visitor* visitor) |
v8::Handle<v8::Object> MessageEvent::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
v8::Handle<v8::Object> wrapper = Event::wrap(creationContext, isolate); |
+ return associateWithWrapperInternal(wrapper, isolate); |
+} |
+v8::Handle<v8::Object> MessageEvent::associateWithWrapper(const WrapperTypeInfo* wrapperType, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) |
+{ |
+ Event::associateWithWrapper(wrapperType, wrapper, isolate); |
+ return associateWithWrapperInternal(wrapper, isolate); |
+} |
+ |
+v8::Handle<v8::Object> MessageEvent::associateWithWrapperInternal(v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) |
+{ |
// Ensures a wrapper is created for the data to return now so that V8 knows how |
// much memory is used via the wrapper. To keep the wrapper alive, it's set to |
// the wrapper of the MessageEvent as a hidden value. |