From 0014f99886af16d767776f68624b95c264c0d191 Mon Sep 17 00:00:00 2001 From: Thomas Wilburn Date: Tue, 4 Sep 2018 18:17:47 -0500 Subject: [PATCH] Do not use iterables in Set constructor --- list/list.js | 5 ++--- map/map.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/list/list.js b/list/list.js index dc8d209..b63c8eb 100644 --- a/list/list.js +++ b/list/list.js @@ -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; }, diff --git a/map/map.js b/map/map.js index 694b574..cf6ec66 100644 --- a/map/map.js +++ b/map/map.js @@ -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; }