Fixed: Make sure we compile with es2022 as ecmaVersion in the parser

This commit is contained in:
Martin Carlberg committed 2022-09-01 13:53:52 +02:00
1 parent 53e1e936d9
commit 55aca1fde9
1 file changed
+1 -1
+1 -1
View File
@@ -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