From f4c51e42eadf85e9e45e622cb7426a6e034870b1 Mon Sep 17 00:00:00 2001 From: Nikolay Kharitonov Date: Wed, 22 Nov 2023 15:19:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix=20another=20potential=20cpu?= =?UTF-8?q?=20leak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DEV-1162 --- src/game/game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/game.js b/src/game/game.js index 579a2b49..c3836add 100644 --- a/src/game/game.js +++ b/src/game/game.js @@ -8,6 +8,7 @@ market = require('./market'), customPrototypes = require('./custom-prototypes'), system = { Function: { bind: Function.bind } }; + system.Function.bind.call = Function.prototype.call; var findCacheFn = { [C.FIND_CREEPS]: (i) => !i.spawning,