Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 9e4179ae30d7013bbbc16a58cca7acb2dc0c2584..c86cee5d4a0a4edaf078ff07802c90debf65f124 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -216,8 +216,8 @@ function PromiseAttachCallbacks(promise, deferred, onResolve, onReject) { |
} |
} |
-function PromiseIdResolveHandler(x) { return x } |
-function PromiseIdRejectHandler(r) { throw r } |
+function PromiseIdResolveHandler(x) { return x; } |
+function PromiseIdRejectHandler(r) { %_ReThrow(r); } |
function PromiseNopResolver() {} |