bugsnag/bugsnag-js — pull request #70 by kyrylo (2014-08-23 03:56:24+00:00)
Title: src/bugsnag: fix Opera Mobile test failures

Fixes #67 (Some tests fail on Opera Mobile)

The old approach was giving failures on Opera Mobile (and probably
some other minor browsers). The problem is that
`document.currentScript` is unsupported by Opera Mobile, so it was
always undefined (hence, `lastScript`, too).

We use `document.scripts` instead. It is supported by all browsers:
https://developer.mozilla.org/en-US/docs/Web/API/document.scripts