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

Re: Service Worker issues

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 28 Jul 2016 13:13:44 -0700
Message-ID: <CAAWBYDAK4trUMLJ7EVPBRQekH4bCmjWuAsSYGaGGiOyALQrzgA@mail.gmail.com>
To: Ben Kelly <bkelly@mozilla.com>
Cc: Sam Ruby <rubys@intertwingly.net>, Webapps WG <public-webapps@w3.org>
> 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.

~TJ
Received on Thursday, 28 July 2016 20:14:31 UTC

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