[K/JS] Exclude Enum.entries property from export to JS

This commit is contained in:
Artem Kobzar
2022-10-21 10:31:06 +00:00
committed by Space Team
parent 6c0b4bcfd4
commit ea6b784e41
10 changed files with 90 additions and 8 deletions
@@ -1,3 +1,4 @@
// !LANGUAGE: +EnumEntries
// IGNORE_BACKEND: JS
// RUN_PLAIN_BOX_FUNCTION
// INFER_MAIN_MODULE
@@ -96,5 +97,7 @@ function box() {
if (this["export_enum_class"].OuterClass.NestedEnum.A.ordinal !== 0) return "fail29"
if (this["export_enum_class"].OuterClass.NestedEnum.B.ordinal !== 1) return "fail30"
if (this["export_enum_class"].Foo.entries !== undefined) return "fail31"
return "OK"
}
@@ -1,3 +1,4 @@
// !LANGUAGE: +EnumEntries
// IGNORE_BACKEND: JS
// RUN_PLAIN_BOX_FUNCTION
// INFER_MAIN_MODULE
@@ -94,5 +95,7 @@ function box() {
if (this["export_enum_class"].OuterClass.NestedEnum.A.ordinal !== 0) return "fail29"
if (this["export_enum_class"].OuterClass.NestedEnum.B.ordinal !== 1) return "fail30"
if (this["export_enum_class"].Foo.entries !== undefined) return "fail31"
return "OK"
}