tasks.js has syntax error
There is a syntax error in tasks.js that prevents building with gulp ...
return del(directories).then(() => done(null, blobs));
node_modules/highlight.js/tools/tasks.js:15
return del(directories).then(() => done(null, blobs));
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
/home/tpci/rtail/gulpfile.js:86
if (0 !== code) throw new Error('node tools/build.js exited with ' + cod
^
Error: node tools/build.js exited with 8
at ChildProcess.
If I rewrite the line as: return del(directories).then(done(null, blobs)); it compiles without error
We recently switched our toolchain to node 4.x, which version are you using?
ubuntu-trusty:~$ node --version v0.10.37
This is probably the reason of it misbehaving. You might want to upgrade node.js to a contemporary release from a supported repository: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Closing this since it isn't really a syntax error, at least for the new versions of node, but rather the build script using an ES6 feature called arrow functions.