Skip to content

Commit

Permalink
Add test cases for io.js stack traces and add 1.x and 2.x engines list
Browse files Browse the repository at this point in the history
  • Loading branch information
ide committed Jun 30, 2015
1 parent ba97698 commit e32d48a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Parses every stack trace into a nicely formatted array of hashes.",
"version": "0.1.1",
"engines": {
"node": "~0.10"
"node": "0.10 - 2"
},
"dependencies": {},
"devDependencies": {
Expand Down
46 changes: 45 additions & 1 deletion test/stacktrace_parser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,51 @@ describe('StackTraceParser', function() {
methodName: 'Timer.listOnTimeout [as ontimeout]',
lineNumber: 110,
column: 15 } ]
}
},
// io.js 2.3.0
{
from: "ReferenceError: test is not defined\n at repl:1:1\n at REPLServer.defaultEval (repl.js:154:27)\n at bound (domain.js:254:14)\n at REPLServer.runBound [as eval] (domain.js:267:12)\n at REPLServer.<anonymous> (repl.js:308:12)\n at emitOne (events.js:77:13)\n at REPLServer.emit (events.js:169:7)\n at REPLServer.Interface._onLine (readline.js:209:10)\n at REPLServer.Interface._line (readline.js:548:8)\n at REPLServer.Interface._ttyWrite (readline.js:825:14)",
to: [ { file: 'repl',
methodName: '<unknown>',
lineNumber: 1,
column: 1 },
{ file: 'repl.js',
methodName: 'REPLServer.defaultEval',
lineNumber: 154,
column: 27 },
{ file: 'domain.js',
methodName: 'bound',
lineNumber: 254,
column: 14 },
{ file: 'domain.js',
methodName: 'REPLServer.runBound [as eval]',
lineNumber: 267,
column: 12 },
{ file: 'repl.js',
methodName: 'REPLServer.<anonymous>',
lineNumber: 308,
column: 12 },
{ file: 'events.js',
methodName: 'emitOne',
lineNumber: 77,
column: 13 },
{ file: 'events.js',
methodName: 'REPLServer.emit',
lineNumber: 169,
column: 7 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._onLine',
lineNumber: 209,
column: 10 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._line',
lineNumber: 548,
column: 8 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._ttyWrite',
lineNumber: 825,
column: 14 } ]
},
]
};

Expand Down

0 comments on commit e32d48a

Please sign in to comment.