1
0
Fork 0

test/runner will now pass all option args to node

Importantly, this means that --debug and --debug-brk will work ;).
textend
Mike Gerwitz 2014-07-27 01:53:08 -04:00
parent afb0a09784
commit a266cfe91b
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (C) 2012, 2013, 2014 Free Software Foundation, Inc.
#
@ -18,5 +18,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
NODE_PATH=".:$NODE_PATH" @NODE@ --stack-trace-limit=20 \
declare -a nodeargs=()
declare -i an=0
while [ "${1:0:1}" == - ]; do
nodeargs[$an]="$1"
((an++))
shift
done
NODE_PATH=".:$NODE_PATH" node --stack-trace-limit=20 "${nodeargs[@]}" \
./runner.js "$@"