Ilya Goncharov
00289d3514
rra/ilgonmic/exported-bridges-2
...
[JS IR] Use js name for signature
[JS] bridgeSavingExport only for JS IR
[JS IR] Fix test
[JS IR] Stable and non stable signatures
[JS IR] Consider return type in js signature and erase for JS name signature
[JS IR] Copy signature from wasm to JS and export bridge, not original
Merge-request: KT-MR-5174
2021-12-08 08:30:14 +00:00
Ilya Goncharov
0c74376cc4
rra/ilgonmic/after-test-promise
...
[JS] Node downloading for js ir integration kotlin test
[JS] Fix API of Promise
[JS IR] Promise symbol as lazy2
[JS] Support legacy compiler aftertest with promises
[JS IR] Generate finally for promised tests
[JS] Setup it tests for JS IR kotlin-test
Merge-request: KT-MR-5168
^KT-49738 fixed
2021-12-08 08:22:53 +00:00
Anastasiya Shadrina
c34fe8d547
[FE] Implement temporary resolution algorithm
2021-12-02 20:23:24 +03:00
Sergej Jaskiewicz
86cabf3bb7
[JS IR] Use Uint16Array as CharArray's storage
2021-12-02 12:39:41 +00:00
Sergej Jaskiewicz
67dfe7bed1
[JS IR] Make Char a value class (again)
...
#KT-35100 Fixed
2021-12-02 12:39:40 +00:00
Alexander Korepanov
2ae10f4378
[JS IR] Optimize equals call for inline class instances.
...
Remove implicit boxing of inline class instances in equals call.
2021-12-02 11:00:02 +00:00
Anton Bannykh
9122304acb
[JS IR] shorten lib name to fit 255 path total length on Windows
2021-12-01 16:50:29 +03:00
Anton Bannykh
5a3c8336ca
[JS IR] import Bar from its module
2021-12-01 16:50:28 +03:00
Anton Bannykh
a76425a7ee
[JS IR] update JS AST diagnostics
2021-12-01 16:50:28 +03:00
Anton Bannykh
af134912be
[JS IR] fix test data
2021-12-01 16:50:20 +03:00
Anton Bannykh
9c4c798fe7
[JS IR] mute tests with wrong linkage
2021-12-01 16:50:16 +03:00
Sergej Jaskiewicz
1300d9604a
fixup! [JS IR] [runtime] Remove valueOf method from Long
...
fix the test for the legacy backend
2021-12-01 12:36:35 +00:00
Sergej Jaskiewicz
e13b6b2a90
[JS IR] [runtime] Remove valueOf method from Long
...
This method was used for coercing `Long` values to JavaScript
`number`. However, it caused issues when `Long` values were
concatenated to a string (see KT-8666, KT-26706).
2021-12-01 12:36:34 +00:00
Ilya Goncharov
b47925b126
[JS] Update mocha and mocha-teamcity-reporter in test infrastructure
...
Merge-request: KT-MR-5129
2021-11-30 12:24:56 +00:00
Sergej Jaskiewicz
887e91328f
[JS IR] Allow value classes in external decls
...
Instances of value classes are passed unboxed, unless the instance is
nullable _and_ the value class wraps another nullable value.
#KT-43224 Fixed
2021-11-29 21:51:29 +00:00
Anton Bannykh
2259c6f75d
[JS IR IC] assert cross-file tag are not null and fix tests
2021-11-29 21:09:35 +03:00
Anton Bannykh
d74ab1538b
[JS IR] fix IC pipeline and unmute tests
2021-11-29 21:09:33 +03:00
Anton Bannykh
ef4ef8c930
[JS IR] switch to the IC Ir2Js and fix tests
2021-11-29 21:09:31 +03:00
Ilya Goncharov
cac286c915
[JS IR] Access with exported properties by its name, not accessor
...
[JS IR] Export properties to ts as getter/setter, not fields
[JS IR] Fix typescript tests
Merge-request: KT-MR-5074
2021-11-26 09:18:12 +00:00
Artem Kobzar
08b0e17d47
feat(polyfills): use stdlib for js polyfills.
2021-11-26 08:14:34 +00:00
Roman Artemev
979ddacd8c
[JS IR] Add and generate IC invalidation tests
2021-11-25 11:22:52 +03:00
Ilya Goncharov
1481ad21f5
Enum implementing exported interface
...
[JS IR] Not export get instance enum function
[JS IR] Enum corresponding class is not considered in export
[JS IR] All enums are abstract and with private constructor
[JS IR] Any methods is left in d.ts
[JS IR] Make enum with declarations inside corresponding class
[JS IR] Export of interface through fake override
[JS IR] Include enum entry corresponding class members into export model
Merge-request: KT-MR-5031
^KT-49779 fixed
^KT-49773 fixed
2021-11-24 12:25:50 +00:00
Ilya Goncharov
f48436b35e
rra/ilgonmic/eager-like-native
...
[JS IR] Leave JsEagerInitialization until bootstrap update
[JS IR] Fix js stdlib api
[JS IR] Change annotation on eager initialization in sources
[JS IR] Make eager initialization consistent with native
Merge-request: KT-MR-5030
2021-11-22 12:45:37 +00:00
Anton Bannykh
de0b3e5b20
[JS IR] temporary skip some IC checks
2021-11-19 00:39:40 +03:00
Anton Bannykh
bb601042df
[JS IR] unmute most RECOMPILE IR tests
2021-11-19 00:38:58 +03:00
Anton Bannykh
58bd4ffd71
[JS IR] disable some AST checks for now
2021-11-19 00:38:55 +03:00
Anton Bannykh
1ae042edc3
[JS IR] make old Ir2Js pass all tests
2021-11-19 00:38:46 +03:00
Anton Bannykh
0506d422a3
[JS IR] support per-module in the new Ir2JS
2021-11-19 00:38:27 +03:00
Anton Bannykh
bdf31b8e52
[JS IR] unmute enumUsage IC test
2021-11-19 00:38:21 +03:00
Anton Bannykh
03b9caa439
[JS IR] export external declarations
2021-11-19 00:38:15 +03:00
Artem Kobzar
d5dd35cb20
feat(@JsExport for interfaces): add ability to export interfaces in TypeScript.
2021-11-18 10:07:38 +00:00
Ivan Kylchik
c7435ba760
Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
...
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00
Artem Kobzar
af924fd3d1
feat: add implicit export support for Kotlin/JS
2021-11-16 16:59:18 +00:00
Igor Yakovlev
71bf36b613
[JS] Fix test testdata for InlineMultiFile.testTrait test
2021-11-15 19:53:50 +03:00
Ivan Kylchik
41547174a7
[JS TESTS] Enable directive processing for js ir
2021-11-12 21:24:32 +03:00
Svyatoslav Kuzmich
49d63abc88
[Wasm] Add JS box/native tests
2021-11-12 18:44:47 +03:00
Sergej Jaskiewicz
7b017fad90
[JS IR] Add tests for KT-41964 and KT-44981
2021-11-09 14:34:13 +00:00
Ivan Kylchik
0e4cf05d3e
[JS TESTS] Fix es module test files for new test infrastructure
2021-11-08 23:50:34 +03:00
Ivan Kylchik
edd608446e
[TESTS] Move WITH_RUNTIME directive to file level
2021-11-08 23:50:34 +03:00
Ilya Goncharov
f22de86954
[JS IR] Possibility to use export for nested inside object
...
[JS IR] Fix test data after master rebase
[JS IR] Use stdlib's listOfNotNull
[JS IR] Possibility to use export for nested inside object
- Add tests for such cases
Merge-request: KT-MR-4883
^KT-49363 fixed
2021-11-03 09:56:22 +00:00
Sergej Jaskiewicz
42c213d950
[JS IR] Explicitly convert Long values to String in string concatenation
...
#KT-39891 Fixed
2021-11-02 10:42:28 +00:00
Ilya Goncharov
9fdb0a23cd
[JS IR] Add literal and union types to TS generation, support them for enum
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:24 +00:00
Ilya Goncharov
4fa2fa6c26
[JS IR] Export name and ordinal for enum classes
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:24 +00:00
Ilya Goncharov
a31a6c5117
[JS IR] Fix conflict with master
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:23 +00:00
Ilya Goncharov
993b194a7b
[JS IR] Actualize JS files according to TS tests
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:22 +00:00
Ilya Goncharov
817e3dc306
[JS IR] Add TypeScript export tests for enum class
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:21 +00:00
Ilya Goncharov
cd1296309f
[JS IR] Add constructor parameter to test and values, valueOf methods
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:21 +00:00
Ilya Goncharov
9bd44e01f5
[JS IR] Export enum members like from usual classes
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:20 +00:00
Ilya Goncharov
196dc6b071
[JS IR] Add test for enum exportness
...
^KT-44494 fixed
2021-11-01 13:28:19 +00:00
Artem Kobzar
979e9f94ef
feat(Escaped Identifiers): add ability to use any symbol wrapped in back ticks.
2021-10-29 17:55:59 +00:00