- From: Pauan <notifications@github.com>
- Date: Tue, 02 Apr 2019 15:44:06 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 2 April 2019 22:44:28 UTC
@RReverser Catching exceptions [is about ~135 times slower than returning `null`](https://jsperf.com/try-catch-performance3), so we'd really like to avoid that. And you might have to put in extra checking to make sure that you're catching the *right* exception (and not some unrelated exception). It's quite common for DOM APIs to return `null` on failure. And it doesn't require synthesizing an `Error` object and sending it to Rust. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/encoding/issues/174#issuecomment-479238847
Received on Tuesday, 2 April 2019 22:44:28 UTC