Skip to content

Latest version of callsite breaks console-trace #14

@dgem

Description

@dgem

Just setup a new node install and npm installed. It fails on the first log, for example:

console.log("bla");

results in a barf

DEBUG: Starting child process with 'node single.js'
domain.js:66
    throw er;
          ^
ReferenceError: __stack is not defined
    at Object.forEach.console.(anonymous function) [as info] (/Users/dan/code/server/node_modules/console-trace/console-trace.js:43:42)
    at Object.init (/Users/dan/code/server/lib/data_store.js:17:10)
    at Object.start (/Users/dan/code/server/lib/server.js:17:14)
    at Object.<anonymous> (/Users/dan/code/server/single.js:10:8)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
DEBUG: Program node single.js exited with code 1

It looks to me that it's because, 6 days ago, this commit in callsite - tj/callsite@4882cd0 removed the __stack var

Easiest fix looks like to set the callsite dependency to 0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions