Skip to content

Commit

Permalink
fixed line offset for firefox stack
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed May 14, 2012
1 parent 07922fa commit d577e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/callbacks/runtime.js
Expand Up @@ -189,7 +189,7 @@
s = s.split('\n').map(function(l) {
// try to map firefox format to V8 format
// ffOffset takes care of lines difference introduced by require.js script.
var ffOffset = typeof navigator === 'object' ? 12 : 0;
var ffOffset = 0; // typeof navigator === 'object' ? 12 : 0;
var m = /(^[^(]+)\([^@]*\@(.*)\:(\d+)$/.exec(l);
l = m ? " at " + m[1] + " (" + m[2] + ":" + (parseInt(m[3]) - ffOffset) + ":0)" : l;
ff = ff || (m != null);
Expand Down

0 comments on commit d577e1f

Please sign in to comment.