From 8f3c8766d6be85a884f0c023948e8a31610460fa Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Wed, 2 Aug 2017 15:29:24 -0400 Subject: [PATCH] Update Promise PJs (#10762) Fixes https://github.com/ampproject/amphtml/issues/10730. A very interesting bug where promise adoption (an inner promise being returned in side a `#then` block causes the outer to adopt the inner) would not update the state of the outer promise if the inner was still pending. This only appeared when: 1. The outer promise was stored, and not used as a larger chain. 2. The inner promise was pending. 3. The outer promise has a `#then` block _after_ the inner promise resolved. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1edb5d242bff..afafe2188b35 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "dependencies": { "document-register-element": "1.5.0", - "promise-pjs": "1.1.2", + "promise-pjs": "1.1.3", "web-animations-js": "2.3.1" }, "devDependencies": {