Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Don't fail on empty file component of a stack trace * Capture source of eval * Don't break sourcemaps * Clean things up a bit, get more organized
- Loading branch information
Showing
12 changed files
with
98 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
* | ||
!.gitignore | ||
!package.json | ||
!index.js | ||
!kitchensink.js | ||
!clustertest.js | ||
!test.js | ||
!test-promisify.js | ||
!README.md | ||
!key.pem | ||
!key-cert.pem | ||
!proxy.js | ||
/node_modules | ||
/tests/test-sourcemaps.js | ||
/tests/test-sourcemaps.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
{ | ||
"name": "wtfnode", | ||
"version": "0.5.7", | ||
"version": "0.6.0", | ||
"description": "Utility to help find out why Node isn't exiting", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/myndzi/wtfnode" | ||
}, | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"proxy.js", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "(cd tests && node test && node test-eval && node test-promisify)", | ||
"test-sourcemaps": "(cd tests && coffee --map --compile test-sourcemaps.coffee && node test-sourcemaps.js || exit 0)", | ||
"kitchensink": "(cd tests && node kitchensink)" | ||
}, | ||
"author": "Kris Reeves", | ||
"bin": { | ||
"wtfnode": "proxy.js" | ||
}, | ||
"license": "ISC" | ||
"license": "ISC", | ||
"devDependencies": { | ||
"coffee-script": "^1.12.7", | ||
"source-map-support": "^0.5.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash -e | ||
|
||
. ~/.nvm/nvm.sh | ||
|
||
CURRENT_VERSION="$(node --version)" | ||
|
||
declare -a versions=( | ||
"0.10" | ||
"0.12" | ||
"4" | ||
"5" | ||
"6" | ||
"7" | ||
"8" | ||
"9" | ||
) | ||
|
||
test_version () { | ||
nvm install "$1" >/dev/null 2>/dev/null | ||
nvm use "$1" >/dev/null | ||
npm test >/dev/null | ||
} | ||
|
||
for ver in "${versions[@]}"; do | ||
if test_version "$ver"; then | ||
echo "$ver: ok" | ||
else | ||
echo "$ver: failed" | ||
fi | ||
done | ||
|
||
nvm use "$CURRENT_VERSION" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
var wtf = require('../index'); | ||
|
||
var foo = new Function('setTimeout(function evaled() {}, 100);'); | ||
foo(); | ||
wtf.dump(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
wtf = require('../index') | ||
require('source-map-support').install() | ||
|
||
noop = () -> | ||
undefined | ||
|
||
setTimeout(noop, 1000) | ||
|
||
wtf.dump() | ||
|
||
foo = -> | ||
bar = -> throw new Error 'this is a demo' | ||
bar() | ||
foo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters