Chromium Code Reviews| Index: Source/bindings/v8/ScriptPromise.h |
| diff --git a/Source/bindings/v8/ScriptPromise.h b/Source/bindings/v8/ScriptPromise.h |
| index b1f3781cde698650365fefe46b6527adbb7bff12..cfcf2bca270b50d1570c5585bf789c9266b401f0 100644 |
| --- a/Source/bindings/v8/ScriptPromise.h |
| +++ b/Source/bindings/v8/ScriptPromise.h |
| @@ -93,6 +93,16 @@ public: |
| m_promise.clear(); |
| } |
| + bool operator==(const ScriptPromise& value) const |
| + { |
| + return m_promise == value.m_promise; |
| + } |
| + |
| + bool operator!=(const ScriptPromise& value) const |
| + { |
| + return !operator==(value); |
|
yhirano
2014/07/01 04:38:14
No need for the parentheses?
dominicc (has gone to gerrit)
2014/07/01 05:32:16
I think they're needed for the explicit invocation
|
| + } |
| + |
| // Constructs and returns a ScriptPromise from |value|. |
| // if |value| is not a Promise object, returns a Promise object |
| // resolved with |value|. |