From 553c869910841cf256d137263c9bf9c1b179cff0 Mon Sep 17 00:00:00 2001 From: Arnaud Buchholz Date: Sat, 14 Oct 2017 10:15:55 -0400 Subject: [PATCH] Introduces gpf.fs.read for all hosts (#168) --- src/host/phantomjs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/phantomjs.js b/src/host/phantomjs.js index 80e8f487..2fe8c53c 100644 --- a/src/host/phantomjs.js +++ b/src/host/phantomjs.js @@ -7,6 +7,7 @@ /*global _GPF_HOST*/ // Host types /*global _gpfBootImplByHost*/ // Boot host specific implementation per host /*global _gpfExit:true*/ // Exit function +/*global _gpfNodeFs:true*/ // Node/PhantomJS require("fs") /*global _gpfWebDocument:true*/ // Browser document object /*global _gpfWebWindow:true*/ // Browser window object /*#endif*/ @@ -24,5 +25,6 @@ _gpfBootImplByHost[_GPF_HOST.PHANTOMJS] = function () { _gpfWebWindow = window; _gpfWebDocument = document; + _gpfNodeFs = require("fs"); };