Builds fail with Node v10+ due to an exception in src/build_lua_parser.js when calling fs.writeFile() without a callback at the 3rd argument.
In Node versions before v7, it was allowed not to pass a callback but this was deprecated in Node v7 and completely removed in Node v10.
While with v7, v8 and v9 skipping a callback would only issue a deprecation warning, v10 finalised the deprecations and it now throws an exception.
I updated the call to use fs.writeFileSync() instead, because it does not expect a callback and there was no special error handling in the code anyhow.
Builds fail with Node v10+ due to an exception in
src/build_lua_parser.js
when callingfs.writeFile()
without a callback at the 3rd argument.In Node versions before v7, it was allowed not to pass a callback but this was deprecated in Node v7 and completely removed in Node v10. While with v7, v8 and v9 skipping a callback would only issue a deprecation warning, v10 finalised the deprecations and it now throws an exception.
I updated the call to use
fs.writeFileSync()
instead, because it does not expect a callback and there was no special error handling in the code anyhow.