Skip to content

Instantly share code, notes, and snippets.

@MylesBorins
Created October 12, 2016 16:12
Show Gist options
  • Save MylesBorins/9f2d08045232543db4d3ef257b094346 to your computer and use it in GitHub Desktop.
Save MylesBorins/9f2d08045232543db4d3ef257b094346 to your computer and use it in GitHub Desktop.
$ node -e 'require("./").pass("this is fine");throw new Error("pwn")'
TAP version 13
ok 1 - this is fine
not ok 2 - Error: pwn
---
at:
line: 1
column: 42
file: '[eval]'
stack: |
[eval]:1:42
ContextifyScript.Script.runInThisContext (vm.js:25:33)
Object.exports.runInThisContext (vm.js:77:17)
Object.<anonymous> ([eval]-wrapper:6:22)
bootstrap_node.js:357:29
_combinedTickCallback (internal/process/next_tick.js:67:7)
process._tickCallback (internal/process/next_tick.js:98:9)
test: TAP
message: 'Error: pwn'
...
1..2
# failed 1 of 2 tests
# time=19.613ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment