Skip to content

Commit e56f3d0

Browse files
author
Stu Cox
committed
docs($q): add a note re. difference in exception handling vs ES6
Closes angular#11472
1 parent 469b14a commit e56f3d0

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)