Index: Source/bindings/v8/custom/V8PromiseCustom.h |
diff --git a/Source/bindings/v8/custom/V8PromiseCustom.h b/Source/bindings/v8/custom/V8PromiseCustom.h |
index fd55cace4220f8ba37b7dbbeefffd56a69487358..066d1059c36a0a9cff896dcc038032a5e573049a 100644 |
--- a/Source/bindings/v8/custom/V8PromiseCustom.h |
+++ b/Source/bindings/v8/custom/V8PromiseCustom.h |
@@ -39,10 +39,17 @@ public: |
InternalFieldCount, // This entry must always be at the bottom. |
}; |
+ enum PromiseAlgorithm { |
+ FulfillAlgorithm, |
+ ResolveAlgorithm, |
+ RejectAlgorithm, |
+ }; |
+ |
enum PromiseState { |
Pending, |
Fulfilled, |
Rejected, |
+ PendingWithResolvedFlagSet, |
}; |
enum SynchronousMode { |
@@ -56,6 +63,8 @@ public: |
// |resolver| must be a PromiseResolver instance. |
static void fulfillResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*); |
// |resolver| must be a PromiseResolver instance. |
+ static void resolveResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*); |
+ // |resolver| must be a PromiseResolver instance. |
static void rejectResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*); |
// |promise| must be a Promise instance. |