Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
index 689a293fdb61c7e84a8fcd3d62b1591a641ff784..23b58c136917af7344593e37d732b7b86cb55294 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -7727,8 +7727,8 @@ static void postMessageImpl(const char* interfaceName, TestObject* instance, con |
// FIXME: Only pass scriptState/exceptionState if instance really requires it. |
ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
+ message->unregisterMemoryAllocatedWithCurrentScriptContext(); |
instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState); |
- message->unregisterMemoryAllocatedByCurrentScriptContext(); |
} |
static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |