Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: Source/core/events/MessageEvent.cpp

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DOMURL.cpp ('k') | Source/core/workers/AbstractWorker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « Source/core/dom/DOMURL.cpp ('k') | Source/core/workers/AbstractWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698