Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 964a901

Browse files
Stu Coxpetebacondarwin
Stu Cox
authored andcommitted
docs($q): add a note re. difference in exception handling vs ES6
Closes #11472 Closes #13101
1 parent a995ee1 commit 964a901

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ng/q.js

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
*
5454
* Note: progress/notify callbacks are not currently supported via the ES6-style interface.
5555
*
56+
* Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.
57+
*
5658
* However, the more traditional CommonJS-style usage is still available, and documented below.
5759
*
5860
* [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an

0 commit comments

Comments
 (0)