diff options
Diffstat (limited to 'test/sandbox.js')
-rw-r--r-- | test/sandbox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sandbox.js b/test/sandbox.js index b2b5e00c..bdce4188 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -61,7 +61,7 @@ exports.patch_module_statements = function(code) { symbols = symbols.replace(/[{}]/g, "").trim().replace(/\s*,\s*/g, ","); symbols = symbols.replace(/\*/, '"*"').replace(/\bas\s+(?!$|,|as\s)/g, ":"); imports.push([ - "var {", + "const {", symbols, "} = new Proxy(Object.create(null), { get(_, value) { return { value }; } });", ].join("")); |