- From: Ben Kelly <notifications@github.com>
- Date: Fri, 08 May 2015 18:47:53 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Saturday, 9 May 2015 01:48:20 UTC
> IMO, the resolved values of the promise returned from the above methods should be the same object as well. WDYT? /cc @wanderview All Request, Response, and Cache objects returned from Cache and CacheStorage should be new objects. This can't be represented in webidl as far as I know, though. Reasoning: * Request and Response objects are drainable. They must be different objects * Returning same object for Cache adds complexity and possibly forces de-opt because now we have to deal with js code sticking stuff on the object, etc. Its much simpler to return new objects (as is currently) spec'd and let the GC do its work. Please don't change this. It will just add complications for no benefit. I am ok with the self.caches CacheStorage object being [SameObject]. That one makes sense because its an attribute. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/416#issuecomment-100410494
Received on Saturday, 9 May 2015 01:48:20 UTC