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