File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ function createHarness (conf_) {
114
114
function onend ( ) {
115
115
count -- ;
116
116
if ( this . _progeny . length ) {
117
- var unshifts = this . _progeny . map ( function ( st ) {
117
+ var unshifts = map ( this . _progeny , function ( st ) {
118
118
return function ( ) {
119
119
running = true ;
120
120
out . push ( st ) ;
@@ -152,4 +152,13 @@ function createHarness (conf_) {
152
152
return test ;
153
153
}
154
154
155
+ function map ( xs , f ) {
156
+ if ( xs . map ) return xs . map ( f ) ;
157
+ var res = [ ] ;
158
+ for ( var i = 0 ; i < xs . length ; i ++ ) {
159
+ res . push ( f ( xs [ i ] ) ) ;
160
+ }
161
+ return res ;
162
+ }
163
+
155
164
// vim: set softtabstop=4 shiftwidth=4:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tape" ,
3
- "version" : " 0.3.2 " ,
3
+ "version" : " 0.3.3 " ,
4
4
"description" : " tap-producing test harness for node and browsers" ,
5
5
"main" : " index.js" ,
6
6
"bin" : " ./bin/tape" ,
You can’t perform that action at this time.
0 commit comments