From 4e984d46de8820ff621bfab5f0ff2781cbb23f4d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 1 Apr 2015 16:14:13 +0000 Subject: [PATCH] use v0.10 compatible promises --- bin/walnut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/walnut b/bin/walnut index efc0ce3..5461f7d 100755 --- a/bin/walnut +++ b/bin/walnut @@ -33,7 +33,7 @@ function eagerLoad() { , 'recase' ].forEach(function (name, i) { promise = promise.then(function () { - return new Promise(function (resolve, reject) { + return new PromiseA(function (resolve, reject) { setTimeout(function () { require(name); resolve(); @@ -61,7 +61,7 @@ function eagerLoad() { } ].forEach(function (fn) { promise = promise.then(function (thing) { - return new Promise(function (resolve) { + return new PromiseA(function (resolve) { setTimeout(function () { resolve(fn(thing)); }, 4);