Commit Graph

6181 Commits

Author SHA1 Message Date
Ivan Kylchik 83d2d2cfcf [JS TESTS] Disable node js runner for IR 2021-11-22 21:06:42 +03:00
Ivan Kylchik 3aa88a6ebe [JS TESTS] Allow saving artifacts into build directory on teamcity
This is required to properly run node js tests.
2021-11-22 21:06:40 +03: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
Ilya Goncharov a46c4cf0a5 [JS IR] Fix exportable super types for enum
^KT-49754 fixed
2021-11-22 12:40:27 +00:00
Victor Petukhov a6fd14d4e6 [FE 1.0] Eliminate resolution ambiguity on inherited SAM-interfaces
^KT-17765 Fixed
2021-11-22 14:18:30 +03:00
Victor Petukhov a5c6d370dd [FE 1.0] Eliminate resolution ambiguity with external type parameters
^KT-10926 Fixed
2021-11-22 14:18:29 +03:00
Dmitry Petrov e525e25518 JVM KT-47851 fix redundant checkcast elimination 2021-11-20 23:29:19 +03:00
Sergej Jaskiewicz 060074a9d6 [JS IR] Don't concatenate string template segments with '' when possible
If concatenating with an empty string is a sure no-op, just don't do it.
2021-11-19 11:16:33 +00:00
Roman Artemev 7d8f71d107 [JS IR] Add CLI flag and configuration key about partial linkage
- make possible to turn on/off linkage if klib contains unbound symbols
 - update jsExtraHelp test data
2021-11-19 01:16:32 +03:00
Anton Bannykh de0b3e5b20 [JS IR] temporary skip some IC checks 2021-11-19 00:39:40 +03:00
Anton Bannykh 75368a2c06 [JS IR] tie together IC code in tests and K2JsIrCompiler 2021-11-19 00:39:37 +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 d565cc4262 [JS IR] support new Ir2Js in tests and in K2JsTranslator 2021-11-19 00:38:42 +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
Svyatoslav Kuzmich f833fc4bcb [Wasm] Default parameter values for external functions
+ import top-level external functions wrapped in lambdas
2021-11-17 19:28:14 +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
Igor Yakovlev a7f0f62f69 [WASM] Generate missing WASM tests and mute failing ones 2021-11-15 19:53:49 +03:00
Igor Yakovlev ee7f4c7278 [WASM] Implementation typeOf support 2021-11-15 19:53:48 +03:00
Steven Schäfer a6dae0b37b JVM IR: Fix value class mangling in SAM wrappers from different modules
KT-49659
2021-11-14 21:52:39 +01:00
Ivan Kylchik 41547174a7 [JS TESTS] Enable directive processing for js ir 2021-11-12 21:24:32 +03:00
Ivan Kylchik 8d1459d8c2 [JS TESTS] Move js ir tests to separate folder to fix jsIrTest task 2021-11-12 21:24:32 +03:00
Ivan Kylchik 103d948dc8 [JS TESTS] Remove common handlers from abstract test classes 2021-11-12 21:24:31 +03:00
Ivan Kylchik a3239288a7 [JS TESTS] Rename testNew to test 2021-11-12 21:24:31 +03:00
Ivan Kylchik ab1d0d0b74 [JS TESTS] Rename test to testOld 2021-11-12 21:24:31 +03:00
Ivan Kylchik 8c2e9fdc89 [JS TESTS] Drop old basic tests 2021-11-12 21:24:30 +03:00
Ivan Kylchik 33c799b6d9 [JS TESTS] Drop pir tests 2021-11-12 21:24:30 +03:00
Ivan Kylchik 4d5ba7e956 [JS TESTS] Drop ES6 tests 2021-11-12 21:24:29 +03:00
Svyatoslav Kuzmich 49d63abc88 [Wasm] Add JS box/native tests 2021-11-12 18:44:47 +03:00
Ilya Goncharov c30292a472 [Gradle, JS] Close zip file after reading 2021-11-11 10:25:53 +00:00
Ilya Goncharov 4efde83772 [Gradle, JS] New rules for zipped klib in zip 2021-11-11 10:25:53 +00:00
Ilya Goncharov 3ef5e36425 [Gradle, JS] Use formal check of klibs in gradle plugin 2021-11-11 10:25:53 +00:00
Alexander Udalov 27cfcb9b3d IR: fix thisReceiver parameter type for function classes
Incorrect builder was used at line 269, which led to non-sensible type
in `IrClass.thisReceiver` for function types, such as
`SuspendFunction1<SuspendFunction1, SuspendFunction1>` in the linked
issue.

Avoid creating types manually completely to simplify this code and fix
the bug.

 #KT-49168 Fixed
2021-11-10 21:58:41 +01:00
Dmitry Petrov 76bdf4ff1a JVM KT-49548 extra test 2021-11-10 19:37:25 +03:00
Dmitry Petrov 9a4cff0dc7 JVM KT-49548 progression iterators can be tainted 2021-11-10 19:37:24 +03:00
Svyatoslav Kuzmich a5aee29baa [Wasm] Fix createDirectoryToRunInBrowser
Helper function to import stringFromWasm no longer needed.
2021-11-09 19:54:26 +00:00
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00
Sergej Jaskiewicz 7b017fad90 [JS IR] Add tests for KT-41964 and KT-44981 2021-11-09 14:34:13 +00:00
Ivan Kylchik 3adf80ed37 [TESTS] Replace IrBackendInput if check with require 2021-11-08 23:50:36 +03:00
Ivan Kylchik 81211acbc0 [JS TESTS] Extract common code responsible for getting dependencies 2021-11-08 23:50:35 +03:00
Ivan Kylchik fdf3288e3d [JS TESTS] Move dump of artifacts into js ir backend facade 2021-11-08 23:50:35 +03:00
Ivan Kylchik 7d00dd98d5 [JS TESTS] Suppress unused parameter in incremental handler 2021-11-08 23:50:35 +03:00
Ivan Kylchik db6c357e8e [JS TESTS] Enable diagnostic report for tailRecursion 2021-11-08 23:50:35 +03:00
Ivan Kylchik 54804417dd [JS TESTS] Rewrite js ir ic tests using new test infrastructure 2021-11-08 23:50:35 +03:00