Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: src/js/promise.js

Issue 1578893002: Partial rollback of Promise error checking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add failing ignition test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 48ed821373063185c2c288881bb3296a22facfcc..98a3f409cf1bd3f69daa5fa07ad40ef7d632b94f 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -237,11 +237,6 @@ function NewPromiseCapability(C) {
result.reject = reject;
});
- if (!IS_CALLABLE(result.resolve))
- throw MakeTypeError(kCalledNonCallable, "promiseCapability.[[Resolve]]");
- if (!IS_CALLABLE(result.reject))
- throw MakeTypeError(kCalledNonCallable, "promiseCapability.[[Reject]]");
-
return result;
}
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698