src/eventsource.js
function () {
    try {
      return new TextDecoder().decode(new TextEncoder().encode("test"), {stream: true}) === "test";
    } catch (error) {
      console.log(error);
    }
    return false;
  }
function () {
    try {
      return new TextDecoder().decode(new TextEncoder().encode("test"), {stream: true}) === "test";
    } catch (error) {
      console.log(error);
    }
    return false;
  }
function ( ) { try { return new TextDecoder ( ) . decode ( new TextEncoder ( ) . encode ( "test" ) , { stream : true } ) === "test" ; } catch ( error ) { console . log ( error ) ; } return false ; }
Firefox < 38 throws an error with stream option
Firefox < 38 throws an error with stream option