summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolan McMahon <caolan@caolanmcmahon.com>2013-01-31 04:45:49 -0800
committerCaolan McMahon <caolan@caolanmcmahon.com>2013-01-31 04:45:49 -0800
commit1818b64c24becfa108f39a6bff4e9feafaf4e90a (patch)
treecc3ca7ef0ae89574c869cb109e274b4c9af1b44e /test
parent9a2594e52ecd3bce2bcb7c4adc2ee2bb2226e78d (diff)
parent515c7dfe26135a1961ae9d71c5c4563f62c9d7b4 (diff)
downloadasync-1818b64c24becfa108f39a6bff4e9feafaf4e90a.tar.gz
Merge pull request #194 from superjoe30/fix-use-strict
fix running in --use-strict mode. closes #189
Diffstat (limited to 'test')
-rw-r--r--test/test-strict.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test-strict.js b/test/test-strict.js
new file mode 100644
index 0000000..39c14bf
--- /dev/null
+++ b/test/test-strict.js
@@ -0,0 +1,19 @@
+// run like this:
+// node --harmony --use-strict test-strict.js
+
+var async = require('../lib/async');
+
+function hi() {
+ let i = "abcd";
+ for (let i = 0; i < 3; i++) {
+ console.log(i);
+ }
+ console.log(i);
+}
+function hi2(){
+ console.log("blah");
+}
+
+async.parallel([hi, hi2], function() {
+ console.log("done");
+});