From 964a901bd827656cb5eee36d7a204f738d22647b Mon Sep 17 00:00:00 2001 From: Stu Cox Date: Thu, 15 Oct 2015 23:14:06 +0100 Subject: [PATCH] docs($q): add a note re. difference in exception handling vs ES6 Closes #11472 Closes #13101 --- src/ng/q.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ng/q.js b/src/ng/q.js index 9466a2e9384d..8bb9536b6672 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -53,6 +53,8 @@ * * Note: progress/notify callbacks are not currently supported via the ES6-style interface. * + * Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise. + * * However, the more traditional CommonJS-style usage is still available, and documented below. * * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an