Add CompilerConfiguration to JsConfig
Will be used to store common compiler options (such as source version, inline disabled, etc) as well as JS-specific options, to unify the logic of compiler option initialization between JS and JVM compilers
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ public abstract class AbstractDiagnosticMessageJsTest extends AbstractDiagnostic
|
||||
|
||||
@NotNull
|
||||
private JsConfig getConfig() {
|
||||
return new LibrarySourcesConfig.Builder(getProject(), "testModule", LibrarySourcesConfig.JS_STDLIB)
|
||||
CompilerConfiguration configuration = getEnvironment().getConfiguration();
|
||||
return new LibrarySourcesConfig.Builder(getProject(), configuration, "testModule", LibrarySourcesConfig.JS_STDLIB)
|
||||
.inlineEnabled(false)
|
||||
.isUnitTestConfig(true)
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user