diff options
Diffstat (limited to 'utils/platforms/v8cgi/bootstrap.js')
-rwxr-xr-x | utils/platforms/v8cgi/bootstrap.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/utils/platforms/v8cgi/bootstrap.js b/utils/platforms/v8cgi/bootstrap.js deleted file mode 100755 index d4b3098..0000000 --- a/utils/platforms/v8cgi/bootstrap.js +++ /dev/null @@ -1,41 +0,0 @@ -(function (evalGlobal) { - - var prefix = "."; - - var isFile = function (path) { - return new File(path).exists(); - }; - - var read = function(path) { - var result = "", - f = new File(path); - try { - if (!f.exists()) - throw new Error(); - - f.open("r"); - result = f.read(); - - } finally { - f.close(); - } - return result; - }; - - eval(read(prefix + "/narwhal.js"))({ - global: this, - evalGlobal: evalGlobal, - platform: 'v8cgi', - platforms: ['v8cgi', 'v8', 'c', 'default'], - debug: false, - print: print, - fs: { - read: read, - isFile: isFile - }, - prefix: prefix - }); - -}).call(this, function () { - return eval(arguments[0]); -}); |