nodejs-std icon indicating copy to clipboard operation
nodejs-std copied to clipboard

js.Node.path.resolve bug

Open as3boyan opened this issue 12 years ago • 0 comments

This line of code works:

pathToPlugin = js.Node.require("path").resolve(pathToPlugin);

//Produces this code:
//var pathToPlugin = [js.Node.require("path").join(path[0],subfolder[0])];
//pathToPlugin[0] = js.Node.require("path").resolve(pathToPlugin[0]);

This line of code doesn't work:

pathToPlugin = js.Node.path.resolve(pathToPlugin);

//Produces this code:
//var pathToPlugin = [js.Node.require("path").join(path[0],subfolder[0])];
//pathToPlugin[0] = js.Node.require("path").resolve(null,pathToPlugin[0]);

Second one causes node-webkit to crash.

as3boyan avatar Nov 16 '13 17:11 as3boyan