Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-01-27 10:59:36 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2017-01-27 11:08:39 -0500
commitaf7813e6050b165f095734ea3a8af06383ce0207 (patch)
tree4efbd55ebf7bd3461a1442803a75feccc63bdc0a /Makefile.am
parent7ee9e11337edc3c1159fa38337e099a8b4f70bd6 (diff)
downloadliza-af7813e6050b165f095734ea3a8af06383ce0207.tar.gz
liza-af7813e6050b165f095734ea3a8af06383ce0207.tar.bz2
liza-af7813e6050b165f095734ea3a8af06383ce0207.zip
Use node --harmony-destructuring when available
In newer versions of node, this flag goes away and it is enabled by default. * Makefile.am (test): Add NODE_DESTRUCTURE to mocha invocation. * configure.ac (NODE, NODE_DESTRUCTURE): Add variables. DEV-2296
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1f16d54..762808e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,6 +41,9 @@ modindex: $(nsindex)
test: check
check:
@PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
- mocha --require $(path_test)/pre.js --recursive $(TESTARGS)
+ mocha @NODE_DESTRUCTURE@ \
+ --require $(path_test)/pre.js \
+ --recursive \
+ $(TESTARGS)
FORCE: