Skip to content

Instantly share code, notes, and snippets.

@sam-github sam-github/-
Created Jan 18, 2014

What would you like to do?
> try{require('/etc/passwd')}catch(e){console.log('e<', e, '>')}
unction (exports, require, module, __filename, __dirname) { root:x:0:0:root:/r
e< [SyntaxError: Unexpected token :] >
> ^[[A^[[A^[[A

This comment has been minimized.

Copy link
Owner Author

sam-github commented Jan 18, 2014

I'm surprised the syntax error isn't completely encapsulated in the Error object.

Also, the control is me trying to up-arrow, so the console is a bit messed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.