diff --git a/src/core/primitives.js b/src/core/primitives.js index 1501d199e..58ce1c54e 100644 --- a/src/core/primitives.js +++ b/src/core/primitives.js @@ -251,9 +251,9 @@ var RefSetCache = (function RefSetCacheClosure() { this.dict[ref.toString()] = this.get(aliasRef); }, - forEach: function RefSetCache_forEach(fn, thisArg) { - for (var i in this.dict) { - fn.call(thisArg, this.dict[i]); + forEach: function RefSetCache_forEach(callback) { + for (const i in this.dict) { + callback(this.dict[i]); } },