W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2016

Re: Service Worker issues

From: Ben Kelly <bkelly@mozilla.com>
Date: Thu, 28 Jul 2016 22:54:47 -0400
Message-ID: <CA+1UsbTGxRHT4eK9csA3axDf4yo7oCpUg7Yz3g=qVRinVA_8OQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Sam Ruby <rubys@intertwingly.net>, Webapps WG <public-webapps@w3.org>
On Thu, Jul 28, 2016 at 4:13 PM, Tab Atkins Jr. <jackalmage@gmail.com>
wrote:

> > caches.open("blog - 2016-06-10 14:14:23 -0700").then(c => c.keys())
> > Promise { <state>: "pending" }
>
> Note that this test will *not* tell you whether or not c.keys()
> returns a promise; the .then callback is allowed to return a
> non-promise, and .then() always returns a promise regardless.  You
> have to log the return value of c.keys() directly.
>

caches.open("blog - 2016-06-10 14:14:23 -0700").then(c =>
console.log(c.keys()))
Promise { <state>: "pending" }
Promise { <state>: "pending" }
Received on Friday, 29 July 2016 02:55:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:15:03 UTC