From c4bb8fabba43f8a0f838fbf06ce71746cd9ae4b0 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sun, 30 Aug 2020 12:48:28 -0500 Subject: [PATCH] js: Use Object.create(null) for variable input cache This should fix some potential problems when a variable has an ID like toString --- src/compiler/jsgen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/jsgen.js b/src/compiler/jsgen.js index aed7d298..20c2a26c 100644 --- a/src/compiler/jsgen.js +++ b/src/compiler/jsgen.js @@ -258,7 +258,7 @@ class Frame { /** * @type {Object.} */ - this.variables = {}; + this.variables = Object.create(null); } }