Skip to content

Commit b4d8adc

Browse files
committed
Fix handling of \u2028 and \u2029 in batch mode
1 parent ea8ca89 commit b4d8adc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/runners/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ ConsoleRunner.prototype.executeBatch = function(batch, batchDone) {
144144

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

149149
script += 'runNext();'
150150

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "test262-harness",
33
"repository": "bterlson/test262-harness",
4-
"version": "1.5.3",
4+
"version": "1.5.4",
55
"description": "Node-based harness for test262",
66
"main": "index.js",
77
"bin": {

0 commit comments

Comments
 (0)