Skip to content

Commit e4a7890

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 e4a7890

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
@@ -52,6 +52,8 @@
5252
* ```
5353
*
5454
* Note: progress/notify callbacks are not currently supported via the ES6-style interface.
55+
*
56+
* Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.
5557
*
5658
* However, the more traditional CommonJS-style usage is still available, and documented below.
5759
*

0 commit comments

Comments
 (0)