Skip to content

Commit

Permalink
Fix handling of \u2028 and \u2029 in batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed May 15, 2015
1 parent ea8ca89 commit b4d8adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/runners/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ConsoleRunner.prototype.executeBatch = function(batch, batchDone) {

script += 'var tests = ' + JSON.stringify(batch.map(function(test, i) {
return test.contents
})) + '\n';
})).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '\n';

script += 'runNext();'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "test262-harness",
"repository": "bterlson/test262-harness",
"version": "1.5.3",
"version": "1.5.4",
"description": "Node-based harness for test262",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit b4d8adc

Please sign in to comment.