From a65bbabd15b67cfeeb592f95f20d45b6fd8c649c Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 17 Oct 2018 14:49:16 -0400 Subject: [PATCH] Fix FS to include Embark --- lib/core/fs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/fs.js b/lib/core/fs.js index 99332f56..ac1d3d82 100644 --- a/lib/core/fs.js +++ b/lib/core/fs.js @@ -12,8 +12,11 @@ const pathConfigs = { function restrictPath(receiver, binding, count, args) { const dapp = dappPath(); + const embark = embarkPath(); + const allowedRoots = [ dapp, + embark, os.tmpdir() ]; @@ -187,6 +190,7 @@ module.exports = { mkdirpSync, move, moveSync, + outputFileSync, readFile, readFileSync, readJSONSync,