Skip to content

Problems using lib/coffee-script/parser.js #3608

Closed

Description

@pconerly

I rebuilt the parser:

$ cd /path/to/coffeescript/
$ cake build:parser

And then I tried to use the parser:

$ node lib/coffee-script/parser.js examples/code.coffee
/Users/peterconerly/code/coffeescript/lib/coffee-script/parser.js:554
    var lexer = Object.create(this.lexer);
                       ^
TypeError: Object prototype may only be an Object or null
    at Function.create (native)
    at Object.parse (/Users/peterconerly/code/coffeescript/lib/coffee-script/parser.js:554:24)
    at Object.commonjsMain [as main] (/Users/peterconerly/code/coffeescript/lib/coffee-script/parser.js:707:27)
    at Object.<anonymous> (/Users/peterconerly/code/coffeescript/lib/coffee-script/parser.js:710:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

My node version:

$ node -v
v0.10.30

Activity

  1. lydell commented on Aug 23, 2014

    @lydell
    Collaborator
  2. added a commit that references this issue on Jan 15, 2015
    28c07d3
  3. added a commit that references this issue on Nov 12, 2025
    591af9a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions