Skip to content

eval js files #1

@jmoravek

Description

@jmoravek

problem with eval js files - node.js 2.0
routing.js
fs.readFile(filename, function(err, data) {
data is object, not string for eval

solution - export data object to string

if (type === "js" && c.execute === true) {
eval(""+data); // only change

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