Skip to content

Commit

Permalink
Update dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wendelin committed Jan 26, 2015
1 parent 3b9825b commit b349c24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
49 changes: 0 additions & 49 deletions dist/error-stack-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,6 @@
}(this, function ErrorStackParser(StackFrame) {
'use strict';

// ES5 Polyfills
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
if (!Array.prototype.map) {
Array.prototype.map = function(callback, thisArg) {
var O = Object(this);
var len = O.length >>> 0;
var T;
if (arguments.length > 1) {
T = thisArg;
}

var A = new Array(len);
var k = 0;

while (k < len) {
var kValue, mappedValue;
if (k in O) {
kValue = O[k];
mappedValue = callback.call(T, kValue, k, O);
A[k] = mappedValue;
}
k++;
}

return A;
};
}

// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
if (!Array.prototype.filter) {
Array.prototype.filter = function(callback/*, thisArg*/) {
var t = Object(this);
var len = t.length >>> 0;

var res = [];
var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
for (var i = 0; i < len; i++) {
if (i in t) {
var val = t[i];
if (callback.call(thisArg, val, i, t)) {
res.push(val);
}
}
}

return res;
};
}

var FIREFOX_SAFARI_STACK_REGEXP = /\S+\:\d+/;
var CHROME_IE_STACK_REGEXP = /\s+at /;

Expand Down
2 changes: 1 addition & 1 deletion dist/error-stack-parser.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/error-stack-parser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b349c24

Please sign in to comment.