On 9/12/17 5:57 AM, Geoff wrote:
What they got instead was: undefined.

I actually can't think of a way this could happen...

This surely must mean that indexedDB.open is failing but not throwing an exception.

Failing in what sense?

There _is_ a concept of "uncatchable exception" in Gecko, but it would still get reported to the console by the console evaluation machinery. You can try this out:

  try {
    while(1);
    'finished';
  } catch(ex) {
    console.error(ex);
  }

and then click "Stop it" when the infobar about the looping script appears. Note the error report logged to the console.

So if open() does not terminate execution, you should get "finished". If it terminates via an exception, you should get into the catch block and console.error. If it terminates via "uncatchable exception", the console machinery should report that. In no case should you get bare `undefined` as a result of evaluating your pasted script...

-Boris
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to