We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4924e commit 1e53a51Copy full SHA for 1e53a51
1 file changed
Contrib/PhantomJS/test.js
@@ -8,24 +8,24 @@ process.stdin.on('data', function(chunk) {
8
});
9
10
function toHTML(obj) {
11
- return `<tr>
12
- <td>${obj.code}</td>
13
- <td>${obj.msg}</td>
14
- </tr>`;
+ return '<tr>' +
+ '<td>${obj.code}</td>' +
+ '<td>${obj.msg}</td>' +
+ '</tr>';
15
}
16
17
process.stdin.on('end', function() {
18
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>`;
+ var html = '<table>' +
+ '<thead>' +
+ ' <tr>' +
+ '<th>Code</th>' +
+ '<th>Message<th>' +
+ '</tr>' +
+ '</thead>' +
+ '<tbody>' +
+ issues.map(toHTML).join('') +
+ '</tbody>' +
+ '</table>';
30
console.log(html);
31
-});
+});
0 commit comments