Alexander Korepanov
f5d0c22736
[K2 JS] Unmute and link to issue some JS K2 tests
2024-01-18 15:48:55 +00:00
Artem Kobzar
08bd0d6ce1
[K/JS] Generate tests for K2 + ES-classes compilation
2023-08-01 09:16:20 +00:00
Brian Norman
10ed26991d
[FIR] Extract LHS receiver of assignment operator statements
...
#KT-53490 Fixed
2023-07-12 11:41:33 +00:00
Alexander Korepanov
fc898c7620
[JS IR] Use type upper bounds for calculating function signatures
...
^KT-59239 Fixed
2023-06-14 14:57:15 +00:00
Kirill Rakhman
f9540d8f69
[JS] Remove non-functional IGNORE_FIR directive in js box tests
2023-04-06 08:03:12 +00:00
Ilya Chernikov
aa3c189d83
FIR: fix return statement generation for Unit-returning lambdas...
...
for case then the expected return type is not Unit.
#KT-56747 fixed
2023-03-22 13:23:24 +00:00
Anton Bannykh
b0de442d76
JS IR: fix throwable descendants
...
^ KT-43490 fixed
2023-03-21 12:32:41 +00:00
Kirill Rakhman
45d2424ad8
[FIR] Let prefix inc/dec call getter twice for compatibility with K1
...
#KT-57179 Fixed
2023-03-21 08:48:38 +00:00
Artem Kobzar
ab7b429298
[K/JS] Add ability to use is checks on external objects
2023-03-10 11:33:30 +00:00
Artem Kobzar
642bbd38ba
[K/JS] Move global interface id state into an object to prevent interface ids reinitialization ^Fixed KT-55758
2023-01-09 20:56:19 +00:00
Artem Kobzar
cd0ae20c38
[K/JS] Capture stackTrace before the init function call ^Fixed KT-55315
2022-12-20 18:15:02 +00:00
Steven Schäfer
6af616d3c3
FIR: make declarations marked with 'override' implicitly open
...
#KT-52236 Fixed
2022-12-14 21:46:41 +00:00
Dmitriy Novozhilov
3cffb33ab7
[FE] Drop ApproximateIntegerLiteralTypesInReceiverPosition language feature
...
This feature is not needed because it is unconditionally disabled for K1
(because of not fully correct implementation) and unconditionally enabled
in K2 (K2 does not support old behavior)
^KT-38895
2022-12-09 15:10:02 +00:00
Ilya Chernikov
c3197491a0
FIR JS: temporarily mute failing box tests
2022-11-12 16:28:25 +01:00
Ilya Chernikov
44cce3ad52
FIR JS: mute remaining tests for now
2022-11-12 16:28:23 +01:00
Artem Kobzar
a368fc37c7
[K/JS] Make interface subtyping faster and lighter.
2022-09-19 10:26:11 +00:00
Sergej Jaskiewicz
f07163125b
[JS Legacy] For Unit Elvis don't forget to generate code for the RHS
...
^KT-53780 Fixed
2022-09-02 11:44:17 +00:00
Victor Petukhov
42e71f8c53
Remove explicit enabling the new type inference from test data
2022-07-22 16:03:52 +00:00
Nikolay Lunyak
bdc3b5fe6f
[FIR JS] Mute 170 failing multi-module tests
2022-06-02 13:47:24 +00:00
Artem Kobzar
ccc2aae841
fix(KT-50270): inline properties accessor for child classes too.
2022-04-27 10:21:38 +00:00
Anton Bannykh
281e381223
JS IR: materialize Unit in lambdas
...
^KT-52010 fixed
2022-04-16 09:59:51 +03:00
Ilya Goncharov
002d62de89
rra/ilgonmic/revert-signatures-changes
...
[JS IR] Fix line number test
[JS IR] Ignore isInstance repl test
[JS IR] Ignore isInstance repl test
[JS IR] Add test with unsafe variance
Revert "[JS IR] Optimize away upcasts"
This reverts commit 8149189585 .
Get rid of duplicated signatures
Revert "[JS IR] Consider erasing type parameters in return type in js signatures"
This reverts commit 6adcbe081e .
Revert "rra/ilgonmic/exported-bridges-2 [JS IR] Use js name for signature"
This reverts commit 00289d35
[JS IR] Leave as is
[JS IR] Add test with overloading by generic
[JS IR] Add test from master
[JS IR] Add tests from master
Merge-request: KT-MR-5987
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
^KT-51700 fixed
^KT-51523 fixed
^KT-51685 fixed
2022-04-05 15:35:12 +00:00
Sergej Jaskiewicz
8149189585
[JS IR] Optimize away upcasts
...
#KT-50212 Fixed
2022-01-28 10:03:53 +00:00
Anton Bannykh
58bd4ffd71
[JS IR] disable some AST checks for now
2021-11-19 00:38:55 +03:00
Ivan Kylchik
4deab9693e
[JS TESTS] Remove LANGUAGE_VERSION directive
...
Some of them are not necessary at all, others can be replaced with
`!LANGUAGE` directive with exclusion of corresponding features.
2021-10-25 00:14:20 +03:00
Ivan Kylchik
3e1563d46e
[JS TESTS] Rename JS_TESTS module to main
2021-10-25 00:14:19 +03:00
Sergej Jaskiewicz
55ae6d1f3e
[JS IR] Optimize pattern-matching of enums into comparing their ordinals
...
For this code:
```
enum class Season {
WINTER,
SPRING,
SUMMER,
AUTUMN
}
fun bar1(x : Season) : String {
return when (x) {
Season.WINTER, Season.SPRING -> "winter_spring"
Season.SUMMER -> "summer"
else -> "autumn"
}
}
```
previously we generated this:
```
function foo(x) {
var tmp0_subject = x;
return (tmp0_subject.equals(Season_WINTER_getInstance())
? true
: tmp0_subject.equals(Season_SPRING_getInstance()))
? 'winter_spring'
: tmp0_subject.equals(Season_SUMMER_getInstance())
? 'summer'
: 'autumn';
}
```
And now we generated this:
```
function bar2(x) {
var tmp0_subject = x;
var tmp0 = tmp0_subject._get_ordinal__0_k$();
var tmp;
switch (tmp0) {
case 0:
case 1:
tmp = 'winter_spring';
break;
case 2:
tmp = 'summer';
break;
case 3:
tmp = 'autumn';
break;
default:
noWhenBranchMatchedException();
break;
}
return tmp;
}
```
2021-10-14 11:44:01 +00:00
Svyatoslav Kuzmich
279f184703
[JS] Remove failed checks based on unstable naming
2021-10-12 23:29:39 +03:00
Svyatoslav Kuzmich
3f8dce4b53
[JS IR] Support per-file mode and ES modules
2021-10-12 23:29:39 +03:00
Sergej Jaskiewicz
65d40c2253
[JS IR] Make tests that use directives pass with IR BE
2021-10-06 09:23:50 +00:00
Roman Artemev
9123d426c3
[JS] Add test for KT-43374
2021-09-27 19:01:42 +03:00
Mikhael Bogdanov
38fb5e16ef
Update test affected by ApproximateIntegerLiteralTypesInReceiverPosition feature
2021-07-29 19:45:54 +02:00
Abduqodiri Qurbonzoda
968099fbec
Advance deprecation level of FP to lesser than Int types to ERROR #KT-30360
2021-04-07 00:23:20 +03:00
Ilya Gorbunov
94240f7b21
Stabilize unsigned types KT-45653
...
Deprecate specialized unsigned iterators for removal.
Fix compiler tests:
- drop unsignedLiteralsOn1_2 because apiVersion 1.2 is no longer supported
- drop experimental unsigned literals diagnostic test
2021-03-31 19:05:04 +03:00
Roman Artemev
f824bb6987
[JS BE] Merge Legacy and IR BE exceptions-related test data
...
- regenerate tests
- add consistency test
2020-10-12 15:22:44 +03:00
Svyatoslav Kuzmich
bbfc1a10ad
[JS] Fix stack trace capturing from secondary constructors KT-37563
2020-06-22 12:03:59 +03:00
Svyatoslav Kuzmich
6792779281
[JS IR] Fix stack trace capturing in secondary constructors (KT-37563)
...
Call captureStack in primary constructors and generated factories
2020-06-22 11:50:14 +03:00
Vitaly
fe047f9b47
[JS BE] mutes tests for JS_IR_ES6, which muted for JS_IR
2020-05-27 00:32:56 +03:00
Roman Artemev
5dcac16cf7
[JS IR] Update test data
2020-03-03 18:54:36 +03:00
Roman Artemev
161bb72439
[JS IR] Update test data
2020-03-03 18:54:36 +03:00
Victor Petukhov
4490efab3e
[NI] Use original descriptor for functions imported from object during JS mangling
...
^KT-35904 Fixed
2020-01-30 19:55:41 +03:00
Abduqodiri Qurbonzoda
dabf6376db
Update js reachable nodes count after expanding StringBuilder api
2019-12-06 05:37:09 +03:00
Roman Artemev
d4fb76c1da
[JS IR BE] Fix overriding property of Throwable
2019-07-09 10:40:01 +03:00
Svyatoslav Kuzmich
a2625c7bc8
[JS IR BE] Don't render null messages in Throwable
...
Set message property to 'undefined' to make Error.prototype.toString
skip it
2019-07-04 18:33:23 +03:00
Svyatoslav Kuzmich
871180cdc0
[JS IR BE] Fix setting names of Throwable subclasses without primary constructor
2019-07-03 20:37:49 +03:00
Svyatoslav Kuzmich
69962cbf8c
[JS IR BE] Add JsExport annotations
2019-07-01 18:55:41 +03:00
Roman Artemev
fabd306437
[JS IR BE] Fix varargs for inline arrays
2019-05-16 19:27:41 +03:00
Svyatoslav Kuzmich
0de1242f68
[JS IR BE] Unmute passed tests
2019-05-06 19:34:25 +03:00
Svyatoslav Kuzmich
0f07209490
[JS IR BE] Remove unnecesary println from tests
2019-03-15 13:53:21 +03:00
Svyatoslav Kuzmich
a736756ceb
[JS IR BE] Fix and refactor interop tests
2019-02-25 15:09:27 +03:00