- From: Ulan Degenbaev <notifications@github.com>
- Date: Thu, 27 Jun 2019 08:14:49 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 27 June 2019 15:15:11 UTC
Is it bad because developers might forget to add try/catch around the call and would be surprised by an exception in production? If it is critical to avoid non-deterministic error throwing, we can move that part into the result. For example, the API could return an estimate range [0, max-heap-size] to signal that it cannot compute accurate result without leaking cross-origin information. I want to mention that the result of the API is inherently implementation dependent and cannot be compared across browsers. That holds for any feasible memory measurement API. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/386#issuecomment-506389099
Received on Thursday, 27 June 2019 15:15:11 UTC