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
define('test', { | |
task1: function(cb) { | |
require('dep', function() { | |
// do smth | |
cb(); | |
}); | |
}, | |
}); |
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) |
NewerOlder