Igor Yakovlev
1e798a2527
[Wasm] Implement IrLinkageError end enable partial linker
...
KT-58088
2024-03-12 14:36:45 +00:00
Ilya Gorbunov
5afb2c5e4b
[stdlib] Annotated new API with SinceKotlin(2.0) where required KT-64904
2024-03-12 01:36:46 +00:00
Igor Yakovlev
84a5a9ff53
Revert "[Wasm] Implement IrLinkageError end enable partial linker"
...
This reverts commit c0f387dbd1 .
2024-03-11 19:27:12 +00:00
Ilya Gorbunov
7175680917
[stdlib] Specify EXACTLY_ONCE contract for useLines
2024-03-11 18:12:27 +00:00
Ilya Gorbunov
ed8c71442b
[stdlib] Use more idiomatic index range check in getOrElse/Null
2024-03-11 18:12:27 +00:00
Ilya Gorbunov
fc13ae7b4d
[stdlib] Specify AT_MOST_ONCE contract for default-value-like functional parameters KT-54879
2024-03-11 18:12:27 +00:00
Ilya Gorbunov
dee9fdc02d
[stdlib] Regenerate sources
2024-03-11 18:12:27 +00:00
Igor Yakovlev
8fe5cf2641
[WasmJs] Support catching JS exceptions
...
Fixed #KT-65660
2024-03-11 14:27:12 +00:00
Igor Yakovlev
6930fc8fed
[WasmJs] Add support for external class reflection
...
Fix #KT-64890
2024-03-09 10:40:46 +01:00
Igor Yakovlev
60d425e2c7
[Wasm] Make specialisations for closured primitive values
...
Fixed KT-66065
2024-03-07 14:51:02 +00:00
Igor Yakovlev
c0f387dbd1
[Wasm] Implement IrLinkageError end enable partial linker
...
KT-58088
2024-03-05 17:17:32 +00:00
Yahor Berdnikau
2f70478e67
[Gradle] Deprecate kotlinOptions DSL in KotlinCompile DSL
...
^KT-63419 In Progress
2024-02-28 21:20:18 +00:00
Igor Yakovlev
a5ef668e3c
[Wasm] Boolean boxed instances are the same
...
Fixed #KT-65411
2024-02-28 15:23:21 +00:00
Alexander Udalov
7f90111283
Build: remove obsolete -Xbuiltins-from-sources from stdlib build
...
It was removed in 77dba281a3 .
2024-02-28 07:25:47 +00:00
Abduqodiri Qurbonzoda
65cfc578a8
Introduce constructor-like function for AutoCloseable #KT-66102
2024-02-27 20:52:49 +00:00
Abduqodiri Qurbonzoda
557ea32f87
Introduce kotlin.AutoCloseable typealias in K/JVM stdlib #KT-55777
2024-02-27 20:52:49 +00:00
Abduqodiri Qurbonzoda
98ad68eb90
Promote AutoCloseable & use to stable #KT-65532
2024-02-27 20:52:49 +00:00
Abduqodiri Qurbonzoda
0811a5b77b
Promote enumEntries() to stable #KT-65532
2024-02-27 19:49:12 +00:00
Abduqodiri Qurbonzoda
31aa71dd6a
Promote Common String.toCharArray(destination) to stable #KT-65532
2024-02-26 10:48:29 +00:00
Ilya Gorbunov
85854a6b8d
[stdlib] Make enumEntriesIntrinsic not reified/inline
...
It's required to simplify the corresponding backends' inliners.
KT-59712, KT-59713
2024-02-23 05:50:37 +00:00
Ilya Gorbunov
86d5e83f4b
[stdlib] Remove bootstrap implementation of enumEntriesIntrinsic
...
It should have been already implemented as intrinsic in all backends.
Do not test enumEntries intrinsic in the old JVM BE.
KT-53154
Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com >
2024-02-23 05:50:37 +00:00
Yahor Berdnikau
6b19b8b9d0
[Repo] Don't use kotlinOptions in repo build scripts
...
^KT-63419 In Progress
2024-02-22 14:48:10 +00:00
Ilya Gorbunov
0ecbbbf1ca
[stdlib] Set AV to 2.0, LV to 1.9 for main compilations, build tests with K2
2024-02-21 16:28:12 +00:00
Ilya Gorbunov
c2e28149e6
[stdlib] Enable link-via-signatures to workaround KT-62798
2024-02-20 19:59:16 +00:00
Ilya Gorbunov
709076acc9
[stdlib] Improve documentation of Char.isWhitespace and test it behaves the same in different targets
2024-02-20 03:48:08 +00:00
Ilya Gorbunov
baca742a31
[stdlib] Minor: fix various grammar in docs
2024-02-20 03:48:08 +00:00
Ilya Gorbunov
15375c0fd5
[stdlib] Use more idiomatic and performant implementation of isBlank
...
Also replace expect-actual with a common function because its implementation is no longer different in different platforms.
KT-65590
2024-02-20 03:48:08 +00:00
Abduqodiri Qurbonzoda
ae3c9dd9b9
Improve Path.walk/delete/copyToRecursively documentation
2024-02-09 17:20:15 +00:00
Abduqodiri Qurbonzoda
f8c587ddcf
Fix security vulnerability in Path recursive functions #KT-63103
...
* Prohibit files with name "." or ".."
* Detect cycles caused by files with name "/"
* Prohibit copy outside the target directory
The commit also moves zip-related tests to PathRecursiveFunctionsZipTest.
2024-02-09 17:20:15 +00:00
Igor Yakovlev
7cf793f308
[Wasm] Add bootstrap declarations
2024-02-08 14:15:17 +00:00
Igor Yakovlev
be6b9e8a9a
[Wasm] Support lazy associated object initialisation
...
Fix #KT-63939
2024-02-08 14:15:17 +00:00
Abduqodiri Qurbonzoda
5b703c57ec
Fix a test failure caused by KT-52181
2024-02-08 07:46:09 +00:00
Abduqodiri Qurbonzoda
600e306d80
Fix JS Map.keys.remove return value #KT-65525
2024-02-08 07:46:09 +00:00
Abduqodiri Qurbonzoda
20b9ac9d55
Fix memory leak in MapBuilder #KT-65518
2024-02-08 07:46:09 +00:00
Abduqodiri Qurbonzoda
e4a8fc01c3
Fix typo in stdlib KDocs, behavoir -> behavior
2024-01-31 12:11:48 +00:00
Abduqodiri Qurbonzoda
c9d8ecc599
Detect concurrent modifications in ArrayDeque #KT-63355
...
Remove the ArrayDeque.subList().subList() test for comodification detection.
For types that extend AbstractList and to not override subList function,
the behavior varies depending on JDK version. With JKD8, the test fails for ArrayDeque.
While with JDK9+, it passes.
2024-01-31 12:11:48 +00:00
Abduqodiri Qurbonzoda
5f16fb2e4d
Introduce Common protected property AbstractMutableList.modCount #KT-57150
2024-01-31 12:11:48 +00:00
Anton Keks
695119ca35
[stdlib] remove duplicate size checks, as the same is done inside of Array extension functions that are called here
2024-01-31 06:51:08 +00:00
Abduqodiri Qurbonzoda
b67ebf36a2
Implement optimized removeRange for ArrayDeque #KT-64956
...
Test ArrayDeque with size 15. With the existing sizes the removeRange
implementation couldn't reach the maximum number of iterations - 3.
Benchmark results for ArrayDeque.subList().clear() that uses
removeRange() can be found here:
https://github.com/qurbonzoda/KotlinArrayDequeBenchmarks/tree/master/results
2024-01-30 22:37:25 +00:00
Abduqodiri Qurbonzoda
240a423bed
Introduce Common protected function AbstractMutableList.removeRange #KT-57151
2024-01-30 22:37:25 +00:00
Artem Kobzar
8c69ffe8c9
[K/Wasm] Generate wasm-specific unsigned implementations ^KT-58039 Fixed
2024-01-29 20:11:41 +00:00
Artem Kobzar
b59993d88a
[K/Wasm] Prepare for splitting unsigned implementation helpers into expect/actuals KT-58039
2024-01-29 20:11:41 +00:00
vladislav.grechko
f318b5969d
Erase non-reified type parameters by-default when inlining.
...
Substitution of type arguments to non-reified type parameters may lead
to accidental reification, which should not be done (see ^KT-60174 for
examples). So, we should erase them, except the few cases.
^KT-60174: Fixed
^KT-60175: Fixed
2024-01-26 18:31:20 +00:00
Anastasiia Spaseeva
945f602b91
Revert "[Wasm] Support lazy associated object initialisation"
...
This reverts commit 552ee1ee38 .
2024-01-25 14:11:56 +01:00
Igor Yakovlev
552ee1ee38
[Wasm] Support lazy associated object initialisation
...
Fix #KT-63939
2024-01-24 16:24:44 +00:00
Igor Yakovlev
3e9b2573c5
[Wasm/std] Fix invalid sign for FP rem operator
...
Fixed #KT-64829
2024-01-24 15:40:48 +00:00
Artem Kobzar
8d1a90c23c
[K/JS] Support essential Kotlin collections (List, MutableList, Set, MutableSet, Map, MutableMap) for exporting into JS
...
^KT-34995 Fixed
^KT-44871 Fixed
2024-01-24 11:14:46 +00:00
Anastasia.Nekrasova
ad9025afa6
[k1/K2]: Mark @SubclassOptInRequired as an experimental
...
At the moment, SubclassOptInRequired is marked with the
ExperimentalSubclassOptIn annotation. However, it does not work
as expected due to a missing opt-in error. To use SubclassOptInRequired,
an explicit opt-in is necessary because SubclassOptInRequired is an
unstable feature now.
^KT-64739
2024-01-15 14:54:36 +00:00
Igor Yakovlev
931cc48def
[Wasm/WASI] Implementation of a callback on root exported function exit
...
Fixed #KT-64486
2024-01-15 11:37:37 +00:00
Igor Yakovlev
99d5ee4db8
[stdlib] Replace usage of Enum.values with Enum.entries
2024-01-12 18:28:00 +00:00