| Index: Source/core/events/PromiseRejectionEvent.cpp
|
| diff --git a/Source/core/events/PromiseRejectionEvent.cpp b/Source/core/events/PromiseRejectionEvent.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..81b7f939beec44f2d511a50deb862d3f85c2324f
|
| --- /dev/null
|
| +++ b/Source/core/events/PromiseRejectionEvent.cpp
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +
|
| +#include "config.h"
|
| +#include "core/events/PromiseRejectionEvent.h"
|
| +
|
| +namespace blink {
|
| +
|
| +PromiseRejectionEvent::PromiseRejectionEvent()
|
| +{
|
| +}
|
| +
|
| +PromiseRejectionEvent::PromiseRejectionEvent(const AtomicString& type, ScriptPromise promise, ScriptValue reason)
|
| + : Event(type, false, true)
|
| + , m_promise(promise)
|
| + , m_reason(reason)
|
| +{
|
| +}
|
| +
|
| +PromiseRejectionEvent::PromiseRejectionEvent(const AtomicString& type, const PromiseRejectionEventInit& initializer)
|
| + : Event(type, initializer)
|
| + , m_promise(initializer.promise())
|
| + , m_reason(initializer.reason())
|
| +{
|
| +}
|
| +
|
| +PromiseRejectionEvent::~PromiseRejectionEvent()
|
| +{
|
| +}
|
| +
|
| +
|
| +const AtomicString& PromiseRejectionEvent::interfaceName() const
|
| +{
|
| + return EventNames::PromiseRejectionEvent;
|
| +}
|
| +
|
| +DEFINE_TRACE(PromiseRejectionEvent)
|
| +{
|
| + Event::trace(visitor);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|