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 0c7632faa8357958406d1d968573dac07c91caa2..a3c978274a2c60bef9aa3405b55d5be53d0c45c3 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -7700,8 +7700,9 @@ 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->prepareForTransferringContext(); |
instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState); |
- message->unregisterMemoryAllocatedByCurrentScriptContext(); |
+ message->finalizeTransferringContext(); |
} |
static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |