Skip to content

Commit 848da2b

Browse files
Project cleanup
1 parent af2c452 commit 848da2b

13 files changed

+71
-40
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: node_js
22
node_js:
3-
- 0.12
4-
script: gulp test-ci
3+
- '0.12'
4+
script: gulp ci
55
install:
66
- npm install
77
- npm install bower -g
8-
- bower install
8+
sudo: false
99
addons:
1010
sauce_connect: true
1111
env:

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "error-stack-parser",
3-
"version": "1.2.0",
43
"main": "./error-stack-parser.js",
54
"homepage": "https://github.com/stacktracejs/error-stack-parser",
65
"authors": [

dist/error-stack-parser-with-polyfills.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/error-stack-parser-with-polyfills.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/error-stack-parser.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(function (root, factory) {
22
'use strict';
33
// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
4+
5+
/* istanbul ignore next */
46
if (typeof define === 'function' && define.amd) {
57
define('error-stack-parser', ['stackframe'], factory);
68
} else if (typeof exports === 'object') {
@@ -11,8 +13,8 @@
1113
}(this, function ErrorStackParser(StackFrame) {
1214
'use strict';
1315

14-
var FIREFOX_SAFARI_STACK_REGEXP = /\S+\:\d+/;
15-
var CHROME_IE_STACK_REGEXP = /\s+at /;
16+
var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+\:\d+/;
17+
var CHROME_IE_STACK_REGEXP = /\s+at .*(\S+\:\d+|\(native\))/;
1618

1719
return {
1820
/**
@@ -95,7 +97,7 @@
9597
for (var i = 2, len = lines.length; i < len; i += 2) {
9698
var match = lineRE.exec(lines[i]);
9799
if (match) {
98-
result.push(new StackFrame(undefined, undefined, match[2], match[1], lines[i]));
100+
result.push(new StackFrame(undefined, undefined, match[2], match[1], undefined, lines[i]));
99101
}
100102
}
101103

@@ -110,7 +112,7 @@
110112
for (var i = 0, len = lines.length; i < len; i += 2) {
111113
var match = lineRE.exec(lines[i]);
112114
if (match) {
113-
result.push(new StackFrame(match[3] || undefined, undefined, match[2], match[1], lines[i]));
115+
result.push(new StackFrame(match[3] || undefined, undefined, match[2], match[1], undefined, lines[i]));
114116
}
115117
}
116118

dist/error-stack-parser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)