forked from petkaantonov/bluebird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed petkaantonov#1314: yielding a function should not call the func…
…tion When rejecting a non-promise value, string.replace is used, and the value is passed as second parameter. But string.replace, if the second value is a function, will call that function. This commit fixes this by using value.toString().
- Loading branch information
Gil Tayar
committed
Jan 4, 2017
1 parent
d9a3a62
commit c7f55fb
Showing
2 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters