This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
(function ThisIsFunctionName() { | |
throw new Error() | |
})() | |
} catch(x) { | |
console.log(x.stack) | |
} | |
Error | |
at ThisIsFunctionName (unknown source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
squogre:/tmp:% cat test.js | |
(function ThisIsFunctionName() {throw new Error()})() | |
squogre:/tmp:% node test.js | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error | |
at ThisIsFunctionName (/tmp/test.js:1:101) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var Mincer = require('mincer'); | |
var env = new Mincer.Environment(); | |
env.appendPath('/home'); // or whereever you have a big bunch of files | |
var manifest = new Mincer.Manifest(env, '.'); | |
var date = Date.now(); | |
manifest.compile(['some-nonexistent-file']); |
NewerOlder