From 14d7fe003cfe2af9778675b26ad1afe836523b95 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 19 Jun 2024 12:11:00 +0100 Subject: [PATCH] don't force ES version as we support some newer features now --- plugins/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/compiler.js b/plugins/compiler.js index b8e8111..b7919fe 100644 --- a/plugins/compiler.js +++ b/plugins/compiler.js @@ -56,7 +56,7 @@ var board = Espruino.Core.Env.getBoardData(); var tasks = 0; try { - var ast = acorn.parse(code, { ecmaVersion : 6 }); + var ast = acorn.parse(code); var tasks = []; // function xyz() { "compiled" ... } ast.body.forEach(function(node) {