Skip to content

Instantly share code, notes, and snippets.

@andete
Created January 15, 2014 17:53
Show Gist options
  • Save andete/8440992 to your computer and use it in GitHub Desktop.
Save andete/8440992 to your computer and use it in GitHub Desktop.
hello.js faulty javascript generated by coffee -c ?
--- hello.js 2014-01-15 18:42:39.446944705 +0100
+++ hello.js.fix 2014-01-15 18:20:23.099359963 +0100
@@ -1,8 +1,6 @@
(function() {
- var http;
-
- require(http = 'http');
+ var http = require('http');
http.createServer(function(req, res) {
res.writeHead(200);
@andete
Copy link
Author

andete commented Jan 15, 2014

Example was faulty and had:

require http = 'http'

isof

http = require 'http'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment