nodejs-std
nodejs-std copied to clipboard
js.Node.path.resolve bug
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.