[JS IR BE] Add JsExport annotations
This commit is contained in:
@@ -15,6 +15,7 @@ import org.jetbrains.kotlin.js.config.JSConfigurationKeys
|
||||
import org.jetbrains.kotlin.js.config.JsConfig
|
||||
import org.jetbrains.kotlin.js.facade.MainCallParameters
|
||||
import org.jetbrains.kotlin.js.facade.TranslationUnit
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
import org.jetbrains.kotlin.test.TargetBackend
|
||||
import java.io.File
|
||||
|
||||
@@ -108,7 +109,8 @@ abstract class BasicIrBoxTest(
|
||||
phaseConfig = phaseConfig,
|
||||
allDependencies = allDependencies,
|
||||
friendDependencies = emptyList(),
|
||||
mainArguments = mainCallParameters.run { if (shouldBeGenerated()) arguments() else null }
|
||||
mainArguments = mainCallParameters.run { if (shouldBeGenerated()) arguments() else null },
|
||||
exportedDeclarations = setOf(FqName.fromSegments(listOfNotNull(testPackage, testFunction)))
|
||||
)
|
||||
|
||||
val wrappedCode = wrapWithModuleEmulationMarkers(jsCode, moduleId = config.moduleId, moduleKind = config.moduleKind)
|
||||
|
||||
-5
@@ -1520,11 +1520,6 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/expression/cast/checkThrowCCE.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitUpcast.kt")
|
||||
public void testExplicitUpcast() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/cast/explicitUpcast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastToLong.kt")
|
||||
public void testImplicitCastToLong() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/cast/implicitCastToLong.kt");
|
||||
|
||||
Reference in New Issue
Block a user