Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created September 30, 2017 16:36
Show Gist options
  • Save mtheoryx/5c2f5ab6d140782969673737ddbc934e to your computer and use it in GitHub Desktop.
Save mtheoryx/5c2f5ab6d140782969673737ddbc934e to your computer and use it in GitHub Desktop.
WAT
> NaN
NaN
> typeof NaN
'number'
> typeof null
'object'
> Object.keys(null)
TypeError: Cannot convert undefined or null to object
at repl:1:8
at sigintHandlersWrap (vm.js:22:35)
at sigintHandlersWrap (vm.js:73:12)
at ContextifyScript.Script.runInThisContext (vm.js:21:12)
at REPLServer.defaultEval (repl.js:346:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:545:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
> Object.getOwnPropertyNames(null)
TypeError: Cannot convert undefined or null to object
at repl:1:8
at sigintHandlersWrap (vm.js:22:35)
at sigintHandlersWrap (vm.js:73:12)
at ContextifyScript.Script.runInThisContext (vm.js:21:12)
at REPLServer.defaultEval (repl.js:346:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:545:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment