From 21c4caf2f703f182cb79956edd2c23c762bf20c3 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Mon, 16 Jun 2014 19:22:33 -0700 Subject: [PATCH] Resolve paths with path.resolve --- tools/server/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/server/boot.js b/tools/server/boot.js index 012899605c..93c3673e92 100644 --- a/tools/server/boot.js +++ b/tools/server/boot.js @@ -153,7 +153,7 @@ Fiber(function () { // It is safer to use the absolute path as different tooling, such as // node-inspector, can get confused on relative urls. - var absoluteFilePath = __dirname + "/" + fileInfo.path; + var absoluteFilePath = path.resolve(__dirname, fileInfo.path); var func = require('vm').runInThisContext(wrapped, absoluteFilePath, true); func.call(global, Npm, Assets); // Coffeescript });