Skip to content

esprima Unexpected token => #1

@Gaeta

Description

@Gaeta

Code:
`var codeProtect = require('code-protect');
var option = {
sourceDir: './Bot',
destinationDir: './BotCode',
uglify: true,
debug: true
};

codeProtect(option, function (err, data) {
if (err) {
throw err;
} else {
console.log(data);
}
});`

error: \node_modules\esprima\esprima.js:5702 throw e; ^ Error: Line 121: Unexpected token =>

I know this is an old project just wondering on if this can be fixed?

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