Skip to content

v4.0.0 doesn't give file/line for wrong syntax. #2762

Closed
@bobef

Description

@bobef

I'm happily moving some of my stuff to ES6 but when I wrong the syntax I get SyntaxError which goes to my on( 'unhandledException' ) and I print it to get message like this. Not very helpful.

SyntaxError: Unexpected identifier
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/bobi/Dev/prototype-js/tests/tests.js:11:1)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions