Skip to content

Commit 9eb453e

Browse files
committed
Fix 'Uncaught (in promise) TypeError' in Chrome 48
1 parent 23dd661 commit 9eb453e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

es6-shim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@
25612561
p.constructor = {};
25622562
var p2 = Promise.resolve(p);
25632563
try {
2564-
p2.then(null, function () {}); // avoid "uncaught rejection" warnings in console
2564+
p2.then(null, noop).then(null, noop); // avoid "uncaught rejection" warnings in console
25652565
} catch (e) {
25662566
return true; // v8 native Promises break here https://code.google.com/p/chromium/issues/detail?id=575314
25672567
}

0 commit comments

Comments
 (0)