Create JsAnalyzerFacade with allowSliceRewrite=true

Other facades (JVM, Common, Native) are already created with such flag.
This should stop some known 'rewrite at slice'-exceptions from being
thrown (KT-21405, KT-29705).

For a more thorough investivation and details, refer to KT-30031.

Also, see KT-30030: even though it was fixed by the different commit,
the same scenario probably can be used to investigate other rewrites
(even though they will reproduce much less frequently than original
issue)

^KT-21405 Fixed
^KT-29705 Fixed
This commit is contained in:
Dmitry Savvinov
2019-02-21 11:18:16 +03:00
parent 50d1c013fc
commit ba36fafb84
@@ -60,7 +60,7 @@ object JsAnalyzerFacade : ResolverForModuleFactory() {
val container = createContainerForLazyResolve(
moduleContext,
declarationProviderFactory,
BindingTraceContext(),
BindingTraceContext(/* allowSliceRewrite = */ true),
JsPlatform,
TargetPlatformVersion.NoVersion,
targetEnvironment,