const fs = require('fs'); const path = require('path'); const vsctm = require('vscode-textmate'); const oniguruma = require('vscode-oniguruma'); /** * Utility to read a file as a promise */ function readFile(path) { return new Promise((resolve, reject) => { fs.readFile(path, (error, data) => error ? reject(error) : resolve(data)); }) } const wasmBin = fs.readFileSync(path.join(__dirname, './node_m