JS backend: remove Iterable from FAKE_CLASS list, remove Iterator from StandardClasses
This commit is contained in:
@@ -94,8 +94,6 @@ public final class StandardClasses {
|
||||
}
|
||||
|
||||
private static void declareKotlinStandardClasses(@NotNull StandardClasses standardClasses) {
|
||||
standardClasses.declare().forFQ("kotlin.Iterator").kotlinClass("Iterator").methods("next").properties("hasNext");
|
||||
|
||||
for (PrimitiveType type : PrimitiveType.NUMBER_TYPES) {
|
||||
if (type == PrimitiveType.CHAR || type == PrimitiveType.LONG) continue;
|
||||
|
||||
|
||||
@@ -42,8 +42,7 @@ import static org.jetbrains.k2js.translate.utils.AnnotationsUtils.isNativeObject
|
||||
public final class JsDescriptorUtils {
|
||||
// TODO: maybe we should use external annotations or something else.
|
||||
private static final Set<String> FAKE_CLASSES = ContainerUtil.immutableSet(
|
||||
getFqNameSafe(KotlinBuiltIns.getInstance().getAny()).asString(),
|
||||
getFqNameSafe(KotlinBuiltIns.getInstance().getIterable()).asString()
|
||||
getFqNameSafe(KotlinBuiltIns.getInstance().getAny()).asString()
|
||||
);
|
||||
|
||||
private JsDescriptorUtils() {
|
||||
|
||||
Reference in New Issue
Block a user