ass icon indicating copy to clipboard operation
ass copied to clipboard

Support node -p

Open espadrine opened this issue 10 years ago • 1 comments

ass is designed to work on a child process. However, it doesn't support node -p.

For instance, the following change on line 14 of the current example:

kid = cp.spawn("node", ["-p", "require('ass');require('./server')"], { stdio: 'inherit' });

yields the following error:

/example/node_modules/ass/node_modules/blanket/src/index.js:203
        args[1].indexOf(join('node_modules','mocha','bin')) > -1 &&
                ^
TypeError: Cannot call method 'indexOf' of undefined
  …
  at Object.<anonymous> (/example/node_modules/ass/index.js:119:3)

This may be an upstream bug in Blanket.

espadrine avatar Jan 18 '14 17:01 espadrine

hmmm. curious. I'll dig in a bit.

lloyd avatar Jan 28 '14 08:01 lloyd