From cf10df69da2936f52f8abf7549547607fb025c3f Mon Sep 17 00:00:00 2001 From: "kolodny (Moshe Kolodny)" Date: Mon, 22 Jun 2015 10:56:44 -0400 Subject: [PATCH] fixed some issues in new map code --- map/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/test.js b/map/test.js index 071c3f7..bef0b9f 100644 --- a/map/test.js +++ b/map/test.js @@ -15,7 +15,7 @@ describe('map', function() { it('should not use the native map', function() { calledNativeMap = false; - ['x'].map(function(x) { return x; }); + map(['x'], function(x) { return x; }); assert(!calledNativeMap); }); @@ -39,7 +39,7 @@ describe('map', function() { var called = 0; var arr = [1, 2, 3]; - map(function(value) { + map(arr, function(value) { called++; return value; });