mirror of
https://github.com/github/codeql.git
synced 2026-01-06 19:20:25 +01:00
Merge master into next.
This commit is contained in:
@@ -373,7 +373,7 @@ public class AutoBuild {
|
||||
* externs.
|
||||
*/
|
||||
private void extractExterns() throws IOException {
|
||||
ExtractorConfig config = new ExtractorConfig(true).withExterns(true);
|
||||
ExtractorConfig config = new ExtractorConfig(false).withExterns(true);
|
||||
FileExtractor extractor = new FileExtractor(config, outputConfig, trapCache, extractorState);
|
||||
FileVisitor<? super Path> visitor = new SimpleFileVisitor<Path>() {
|
||||
@Override
|
||||
|
||||
@@ -162,7 +162,7 @@ public class ExtractorConfig {
|
||||
this.ecmaVersion = experimental ? ECMAVersion.ECMA2019 : ECMAVersion.ECMA2018;
|
||||
this.platform = Platform.AUTO;
|
||||
this.jsx = true;
|
||||
this.sourceType = SourceType.SCRIPT;
|
||||
this.sourceType = SourceType.AUTO;
|
||||
this.htmlHandling = HTMLHandling.ELEMENTS;
|
||||
this.tolerateParseErrors = true;
|
||||
if (experimental) {
|
||||
@@ -171,6 +171,7 @@ public class ExtractorConfig {
|
||||
this.esnext = true;
|
||||
this.v8Extensions = true;
|
||||
}
|
||||
this.typescriptMode = TypeScriptMode.NONE;
|
||||
this.defaultEncoding = StandardCharsets.UTF_8.name();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user