Skip to content

Instantly share code, notes, and snippets.

View rlidwka's full-sized avatar

Alex Kocharin rlidwka

  • Tbilisi, Georgia
View GitHub Profile
try {
(function ThisIsFunctionName() {
throw new Error()
})()
} catch(x) {
console.log(x.stack)
}
Error
at ThisIsFunctionName (unknown source)
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)
@rlidwka
rlidwka / gist:892d08876d737e265a86
Last active August 29, 2015 14:04
mincer benchmark
#!/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']);