Chromium Code Reviews| Index: third_party/WebKit/Source/core/events/ErrorEvent.h |
| diff --git a/third_party/WebKit/Source/core/events/ErrorEvent.h b/third_party/WebKit/Source/core/events/ErrorEvent.h |
| index 01d0ffe7cc967ee237c16f6f498d3ae990e36cb2..57fc56c88c633db6af9566b7836fada2c9a3fec5 100644 |
| --- a/third_party/WebKit/Source/core/events/ErrorEvent.h |
| +++ b/third_party/WebKit/Source/core/events/ErrorEvent.h |
| @@ -49,8 +49,16 @@ class ErrorEvent final : public Event { |
| static ErrorEvent* create(const String& message, |
| std::unique_ptr<SourceLocation> location, |
| DOMWrapperWorld* world) { |
| - return new ErrorEvent(message, std::move(location), world); |
| + return new ErrorEvent(message, std::move(location), ScriptValue(), world); |
| } |
| + |
| + static ErrorEvent* create(const String& message, |
| + std::unique_ptr<SourceLocation> location, |
| + DOMWrapperWorld* world, |
| + ScriptValue error) { |
|
nhiroki
2017/04/06 01:50:35
nit: It'd be better to align the argument order wi
yiyix
2017/04/06 04:38:19
true, i forget to change the order in the previous
|
| + return new ErrorEvent(message, std::move(location), error, world); |
| + } |
| + |
| static ErrorEvent* create(const AtomicString& type, |
| const ErrorEventInit& initializer) { |
| return new ErrorEvent(type, initializer); |
| @@ -58,7 +66,7 @@ class ErrorEvent final : public Event { |
| static ErrorEvent* createSanitizedError(DOMWrapperWorld* world) { |
| return new ErrorEvent("Script error.", |
| SourceLocation::create(String(), 0, 0, nullptr), |
| - world); |
| + ScriptValue(), world); |
| } |
| ~ErrorEvent() override; |
| @@ -89,6 +97,7 @@ class ErrorEvent final : public Event { |
| ErrorEvent(); |
| ErrorEvent(const String& message, |
| std::unique_ptr<SourceLocation>, |
| + ScriptValue error, |
| DOMWrapperWorld*); |
| ErrorEvent(const AtomicString&, const ErrorEventInit&); |