Skip to content

Commit 1e53a51

Browse files
committed
Going back to ES5
1 parent 9c4924e commit 1e53a51

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

Contrib/PhantomJS/test.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ process.stdin.on('data', function(chunk) {
88
});
99

1010
function toHTML(obj) {
11-
return `<tr>
12-
<td>${obj.code}</td>
13-
<td>${obj.msg}</td>
14-
</tr>`;
11+
return '<tr>' +
12+
'<td>${obj.code}</td>' +
13+
'<td>${obj.msg}</td>' +
14+
'</tr>';
1515
}
1616

1717
process.stdin.on('end', function() {
1818
var issues = JSON.parse(data);
19-
var html = `<table>
20-
<thead>
21-
<tr>
22-
<th>Code</th>
23-
<th>Message<th>
24-
</tr>
25-
</thead>
26-
<tbody>
27-
${issues.map(toHTML).join('')}
28-
</tbody>
29-
</table>`;
19+
var html = '<table>' +
20+
'<thead>' +
21+
' <tr>' +
22+
'<th>Code</th>' +
23+
'<th>Message<th>' +
24+
'</tr>' +
25+
'</thead>' +
26+
'<tbody>' +
27+
issues.map(toHTML).join('') +
28+
'</tbody>' +
29+
'</table>';
3030
console.log(html);
31-
});
31+
});

0 commit comments

Comments
 (0)