Skip to content

Commit

Permalink
Do not use iterables in Set constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswilburn committed Sep 4, 2018
1 parent 79a6c98 commit 0014f99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions list/list.js
Expand Up @@ -706,9 +706,8 @@ var defineListProto = {
var ret;
if(this._computed && this._computed[key] && this._computed[key].compute) {
ret = {};
ret.valueDependencies = new Set([
this._computed[key].compute
]);
ret.valueDependencies = new Set();
ret.valueDependencies.add(this._computed[key].compute);
}
return ret;
},
Expand Down
5 changes: 2 additions & 3 deletions map/map.js
Expand Up @@ -238,9 +238,8 @@ var defineMapProto = {
var ret;
if(this._computed && this._computed[key] && this._computed[key].compute) {
ret = {};
ret.valueDependencies = new Set([
this._computed[key].compute
]);
ret.valueDependencies = new Set();
ret.valueDependencies.add(this._computed[key].compute);
}
return ret;
}
Expand Down

0 comments on commit 0014f99

Please sign in to comment.