[Bug 21424] Futures: rename `catch`

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21424

--- Comment #4 from Mathias Bynens <mathias@qiwi.be> ---
(In reply to comment #1)
> This shouldn't matter. `catch` is not what you feature-detect on; `then` is.

(In reply to comment #1)
> This shouldn't matter. `catch` is not what you feature-detect on; `then` is.

Even then, any code that uses `catch` would throw a syntax error in ES3
environments.

As per ES3:

    if (featureDetect) {
      this.catch;
    }
    // SyntaxError


So, even if you don’t use `catch` in the feature detection snippet, it will
still fail:

    if (featureDetect) {
      this.catch;
    }
    // SyntaxError

As long as `catch` is used it means all code relying on Futures should be
wrapped in a `try`/`catch` block to avoid throwing in ES3 environments.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 28 March 2013 16:53:32 UTC