From 55aca1fde9568ef2d4552d370ad98c7c7b33a1da Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Thu, 1 Sep 2022 13:53:52 +0200 Subject: [PATCH] Fixed: Make sure we compile with es2022 as ecmaVersion in the parser --- Objective-J/FileExecutable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/FileExecutable.js b/Objective-J/FileExecutable.js index 3b01c79fc..613f97c6b 100644 --- a/Objective-J/FileExecutable.js +++ b/Objective-J/FileExecutable.js @@ -66,7 +66,7 @@ FileExecutable.prototype = new Executable(); var compile = function(self, fileContents, aURL, compilerOptions, aFilenameTranslateDictionary) { - var acornOptions = compilerOptions.acornOptions || (compilerOptions.acornOptions = {}); + var acornOptions = compilerOptions.acornOptions || (compilerOptions.acornOptions = {ecmaVersion: 2022}); acornOptions.preprocessGetIncludeFile = function(filePath, isQuoted) { var referenceURL = new CFURL(".", aURL), // Remove the filename from the url