Skip to content

Commit

Permalink
Loosen error string matching regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Oct 17, 2014
1 parent dbc7d6c commit 2c3309d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ var errorLogRe = /^test262\/error (.*)$/;
// logs and join with \n)
Runner.prototype.validateResult = function(test, result) {
var isNegative = test.attrs.flags.negative || test.attrs.negative;

// parse result from log
(result.log || []).forEach(function(log) {
var errorMatch = log.match(errorLogRe);
Expand All @@ -98,7 +97,7 @@ Runner.prototype.validateResult = function(test, result) {

// parse errorString if present
if(result.errorString) {
var match = result.errorString.match(/^(\w+): (.*)$/m);
var match = result.errorString.match(/(\w+): (.*)$/m);
if(match) {
result.errorName = match[1];
result.errorMessage = match[2];
Expand Down

0 comments on commit 2c3309d

Please sign in to comment.