Skip to content

Nodent (and fast-async) break in Meteor #102

@trusktr

Description

@trusktr

I'm running code in Meteor, and I get

Uncaught SyntaxError: Unexpected token )

from the processIncludes function.

This is because Meteor appends a commented line number to all source code, even from node_modules, so for example

function foo() {
  blah()
}

becomes

function foo() { // 1
  blah()         // 2
}                // 3

When processIncludes concatenates the lines of the input, the comments cause the remainder of the function to be commented out, for example:

function foo() { // 1 blah()         // 2 }                // 3

See here for more details: meteor/meteor#9160

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