Skip to content

Instantly share code, notes, and snippets.

@mnutt
Created February 22, 2010 06:29
Show Gist options
  • Select an option

  • Save mnutt/310863 to your computer and use it in GitHub Desktop.

Select an option

Save mnutt/310863 to your computer and use it in GitHub Desktop.
var fs = require("fs");
fs.readFile("/etc/hosts").addCallback(function (content) {
sys.puts(content);
});
// TypeError: Cannot call method 'addCallback' of undefined
// at Object.<anonymous> (/Users/mnutt/code/feature_service/test.js:2:27)
// at Module._loadContent (node.js:929:21)
// at node.js:957:20
// at node.js:561:25
// at node.js:1018:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment