Lookup original location from window.onerror by querying source map. Only works in browsers which support the 4th argument (column number). Chrome Canary and Opera Developer.
There are two test files that both call an undefined function (foobar) the first (test.min.js) returns the correct details doing a source map lookup the second is way off.