Skip to content

Commit

Permalink
Map#set and Set#add should be chainable.
Browse files Browse the repository at this point in the history
Fixes #295.
  • Loading branch information
ljharb committed Oct 14, 2014
1 parent 1022943 commit b2b3e77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,7 @@
entry.prev.next = entry;
entry.next.prev = entry;
this._size += 1;
return this;
},

'delete': function (key) {
Expand Down Expand Up @@ -1878,7 +1879,8 @@
return;
}
ensureMap(this);
return this['[[SetData]]'].set(key, key);
this['[[SetData]]'].set(key, key);
return this;
},

'delete': function (key) {
Expand Down

0 comments on commit b2b3e77

Please sign in to comment.