diff --git a/package.json b/package.json index e7e92b1..050a3de 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/stacktrace_parser_test.js b/test/stacktrace_parser_test.js index 8696870..ba6ed09 100644 --- a/test/stacktrace_parser_test.js +++ b/test/stacktrace_parser_test.js @@ -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. (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: '', + 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.', + 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 } ] + }, ] };