We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd0d57 commit 069437fCopy full SHA for 069437f
tasks/test_syntax.js
@@ -218,14 +218,16 @@ function assertES5() {
218
var report = cli.executeOnFiles(validFiles);
219
var formatter = cli.getFormatter();
220
221
+ var errors = [];
222
if(report.errorCount > 0) {
223
console.log(formatter(report.results));
-
224
- // It doesn't work well to pass formatted logs into this,
225
- // so instead pass the empty string in a way that causes
226
- // the test to fail
227
- log('non-ES5 syntax found', ['']);
+ errors.push('');
228
}
+
+ // It doesn't work well to pass formatted logs into this,
+ // so instead pass the empty string in a way that causes
229
+ // the test to fail
230
+ log('es5-only syntax', errors);
231
232
233
0 commit comments