Fix FS to include Embark

This commit is contained in:
Andre Medeiros 2018-10-17 14:49:16 -04:00 committed by Pascal Precht
parent edb8c99af3
commit a65bbabd15
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 0 deletions

View File

@ -12,8 +12,11 @@ const pathConfigs = {
function restrictPath(receiver, binding, count, args) { function restrictPath(receiver, binding, count, args) {
const dapp = dappPath(); const dapp = dappPath();
const embark = embarkPath();
const allowedRoots = [ const allowedRoots = [
dapp, dapp,
embark,
os.tmpdir() os.tmpdir()
]; ];
@ -187,6 +190,7 @@ module.exports = {
mkdirpSync, mkdirpSync,
move, move,
moveSync, moveSync,
outputFileSync,
readFile, readFile,
readFileSync, readFileSync,
readJSONSync, readJSONSync,