Merge pull request #11620 from Snuffleupagus/RefSetCache-forEach-rm-thisArg

Remove the unused `thisArg` from `RefSetCache.forEach`
This commit is contained in:
Tim van der Meij 2020-02-21 22:35:22 +01:00 committed by GitHub
commit 7f1e15e088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,9 +251,9 @@ var RefSetCache = (function RefSetCacheClosure() {
this.dict[ref.toString()] = this.get(aliasRef); this.dict[ref.toString()] = this.get(aliasRef);
}, },
forEach: function RefSetCache_forEach(fn, thisArg) { forEach: function RefSetCache_forEach(callback) {
for (var i in this.dict) { for (const i in this.dict) {
fn.call(thisArg, this.dict[i]); callback(this.dict[i]);
} }
}, },