Skip to content

Instantly share code, notes, and snippets.

@s3u
Created November 1, 2011 05:15
Show Gist options
  • Save s3u/1329981 to your computer and use it in GitHub Desktop.
Save s3u/1329981 to your computer and use it in GitHub Desktop.
"use strict" saves lunch and many more.
/tmp> cat test.js
"use strict"
a = 'b';
/tmp> node test.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: a is not defined
at Object.<anonymous> (/private/tmp/test.js:3:3)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array.<anonymous> (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment