Is the code below guaranteed to output HERE
?
var p = new Promise(() => console.log("HERE"))
(That is, does var p = new Promise(fn)
always execute fn
if p.then(…)
is never called to do something with the result?)
More specifically, in the context of service workers, if I call Cache.delete()
but never call .then()
on the return value (or I throw away the return value), is the cache entry guaranteed to be deleted?