Re: [ServiceWorker] Can we change the body attribute of Request/Response to a method? (#606)

Let's clarify the term "getter".

Horo said that, on Blink, if it's implemented as `response.body` not `response.body()`, it's evaluated by the DevTools and leads to triggering the side-effects.

Domenic said that if it's "getter" (maybe in the ES6 terminology, when the property is an accessor property), even if it's available for access in the form of `response.body`, it shouldn't be evaluated by the DevTools. If it does, it's a bug of the inspecting tool. Right?

Should the DevTools stop evaluation when `[[Get]] (P, Receiver)` algorithm reaches `Otherwise, IsAccessorDescriptor(desc) must be true so ...` step?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-71594927

Received on Tuesday, 27 January 2015 06:14:24 UTC