| Index: Source/core/events/MessageEvent.cpp
|
| diff --git a/Source/core/events/MessageEvent.cpp b/Source/core/events/MessageEvent.cpp
|
| index 5439dd0f9934a97abc5f690b7c0d9851a8e67574..883b1f969e5703fabc77322637f12b4bdf6ad94e 100644
|
| --- a/Source/core/events/MessageEvent.cpp
|
| +++ b/Source/core/events/MessageEvent.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "core/events/MessageEvent.h"
|
|
|
| #include "bindings/v8/ExceptionMessages.h"
|
| +#include "bindings/v8/ExceptionState.h"
|
| #include "core/events/ThreadLocalEventNames.h"
|
|
|
| namespace WebCore {
|
| @@ -136,7 +137,7 @@ MessageEvent::~MessageEvent()
|
| PassRefPtr<MessageEvent> MessageEvent::create(const AtomicString& type, const MessageEventInit& initializer, ExceptionState& exceptionState)
|
| {
|
| if (initializer.source.get() && !isValidSource(initializer.source.get())) {
|
| - exceptionState.throwTypeError(ExceptionMessages::failedToConstruct("MessageEvent", "The optional 'source' property is neither a Window nor MessagePort."));
|
| + exceptionState.throwTypeError("The optional 'source' property is neither a Window nor MessagePort.");
|
| return 0;
|
| }
|
| return adoptRef(new MessageEvent(type, initializer));
|
|
|