Skip to content

Instantly share code, notes, and snippets.

@deepal
Created February 16, 2016 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/6f1f157f4c1ef63555ca to your computer and use it in GitHub Desktop.
Save deepal/6f1f157f4c1ef63555ca to your computer and use it in GitHub Desktop.
nodesec-eval
> mystr
ReferenceError: mystr is not defined
at repl:1:1
at REPLServer.defaultEval (repl.js:252:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:417:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
> eval('var mystr="this is hidden"')
undefined
> mystr
'this is hidden'
> var total = 10 + n
ReferenceError: n is not defined
at repl:1:18
at REPLServer.defaultEval (repl.js:252:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:417:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
> eval('var n=20')
undefined
> var total = 10 + n
undefined
> total
30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment