| Index: Source/core/dom/MessagePort.cpp
|
| diff --git a/Source/core/dom/MessagePort.cpp b/Source/core/dom/MessagePort.cpp
|
| index 70f8b8a755f43939ca5fcba217d05af2b80dc2da..63c4c4f11eec032ca2b2589fe39127b08da6400b 100644
|
| --- a/Source/core/dom/MessagePort.cpp
|
| +++ b/Source/core/dom/MessagePort.cpp
|
| @@ -61,7 +61,7 @@ MessagePort::~MessagePort()
|
| m_executionContext->destroyedMessagePort(this);
|
| }
|
|
|
| -void MessagePort::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& es)
|
| +void MessagePort::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState)
|
| {
|
| if (!isEntangled())
|
| return;
|
| @@ -74,12 +74,12 @@ void MessagePort::postMessage(PassRefPtr<SerializedScriptValue> message, const M
|
| for (unsigned int i = 0; i < ports->size(); ++i) {
|
| MessagePort* dataPort = (*ports)[i].get();
|
| if (dataPort == this) {
|
| - es.throwDOMException(DataCloneError, ExceptionMessages::failedToExecute("postMessage", "MessagePort", "Item #" + String::number(i) + " in the array of ports contains the source port."));
|
| + exceptionState.throwDOMException(DataCloneError, ExceptionMessages::failedToExecute("postMessage", "MessagePort", "Item #" + String::number(i) + " in the array of ports contains the source port."));
|
| return;
|
| }
|
| }
|
| - channels = MessagePort::disentanglePorts(ports, es);
|
| - if (es.hadException())
|
| + channels = MessagePort::disentanglePorts(ports, exceptionState);
|
| + if (exceptionState.hadException())
|
| return;
|
| }
|
|
|
| @@ -209,7 +209,7 @@ bool MessagePort::hasPendingActivity()
|
| return isEntangled();
|
| }
|
|
|
| -PassOwnPtr<MessagePortChannelArray> MessagePort::disentanglePorts(const MessagePortArray* ports, ExceptionState& es)
|
| +PassOwnPtr<MessagePortChannelArray> MessagePort::disentanglePorts(const MessagePortArray* ports, ExceptionState& exceptionState)
|
| {
|
| if (!ports || !ports->size())
|
| return nullptr;
|
| @@ -228,7 +228,7 @@ PassOwnPtr<MessagePortChannelArray> MessagePort::disentanglePorts(const MessageP
|
| type = "already neutered";
|
| else
|
| type = "a duplicate";
|
| - es.throwDOMException(DataCloneError, ExceptionMessages::failedToExecute("disentanglePorts", "MessagePort", "Item #" + String::number(i) + " in the array of ports is " + type + "."));
|
| + exceptionState.throwDOMException(DataCloneError, ExceptionMessages::failedToExecute("disentanglePorts", "MessagePort", "Item #" + String::number(i) + " in the array of ports is " + type + "."));
|
| return nullptr;
|
| }
|
| portSet.add(port);
|
|
|