Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 2c36d4d55a3d71de243659cd3d043695b0ab0389..9d30e58d928ff7deb1a82e0987d20260b7ac0fbd 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -102,6 +102,15 @@ function PromiseReject(promise, r) { |
} |
+// For API. |
+ |
+function PromiseNopResolver() {} |
+ |
+function PromiseCreate() { |
+ return new Promise(PromiseNopResolver) |
+} |
+ |
+ |
// Convenience. |
function PromiseDeferred() { |