Skip to content

js.Node.path.resolve bug #18

@as3boyan

Description

@as3boyan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions