I don't get this... Previous version of this test was correct, i.e. environment should be set on result, not on error. Can you look at https://github.com/airbrake/airbrake-js/issues/42 once again?