diff --git a/lib/runner.js b/lib/runner.js index f8c744a..bc8dd40 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -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); @@ -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];