onerror uses new internal api + has more test coverage
Merge branch 'master' of github.com:logentries/le_js