Skip to content

Commit

Permalink
fixed some issues in new map code
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodny committed Jun 22, 2015
1 parent 64f5cc4 commit cf10df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand All @@ -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;
});
Expand Down

0 comments on commit cf10df6

Please sign in to comment.