Roman Artemev
fa7104213c
Temporary disable test until bootstrap is updated
2020-10-12 15:22:44 +03:00
Roman Artemev
c16b11a124
[JS IR BE] Fix throwable stuff to make exceptions similar to JVM
2020-10-12 15:22:43 +03:00
Roman Artemev
ff093d363a
[JS IR BE] Fix Throwable ancestor transformation
...
Make sure that `message` and `cause` are properly configured
- synchronize IR BE and Legacy behaviour
- fix corresponding IR lowering
- fix JS IR core runtime
- add test
- fix KT-39964
2020-10-12 15:22:43 +03:00
pyos
adcbfc7b4c
IR: add an emptiness check to all unsigned until loops
...
Unlike signed integers, a larger unsigned type does not mean a lower
minimum value, so `x - 1` can overflow even if `x` is casted to a larger
type.
#KT-42186 Fixed
2020-10-07 12:53:00 +02:00
Ilya Gorbunov
76c5d036a8
Do not pack source of invisible runtime helpers to stdlib-js
...
Use reference sources of built-in Enum and Comparable instead.
KT-42318
2020-10-05 16:07:05 +03:00
Ilya Gorbunov
fafb4a7914
Use regex for case-insensitive String.replace
...
KT-41799
2020-10-02 00:29:26 +03:00
Francesco Vasco
4a0109cf44
Use StringBuilder in String.replace (2x faster)
...
KT-41799
2020-10-02 00:28:53 +03:00
Dmitry Savvinov
769c741d87
Revert "Pack jvm builtins into kotlin-stdlib shipped with idea plugin"
...
This reverts commit 0b5aedb0a2 .
2020-09-18 17:30:44 +03:00
Ilya Gorbunov
0b5aedb0a2
Pack jvm builtins into kotlin-stdlib shipped with idea plugin
...
This lessens the possibility that kotlin plugin will get different
variants of builtins in the classpath, thus making builtins resources
loading less order-dependent.
2020-09-18 15:11:45 +03:00
Abduqodiri Qurbonzoda
36e6247125
Add more details about bit shift operations #KT-41112
2020-09-16 04:05:12 +03:00
Abduqodiri Qurbonzoda
1c0ac850e8
Incorrect documentation for rangeTo function #KT-41356
2020-09-16 04:05:12 +03:00
Alexander Udalov
fb183ec3f8
Never use JVM IR to compile coroutines-experimental
...
JVM IR backend doesn't support old coroutines, so we disable it via
-Xno-use-ir, just as for the main source set. This option has no effect
for the current master builds, but will be necessary once JVM IR is
enabled project-wide.
2020-09-15 19:59:14 +02:00
Ilya Gorbunov
349cad7b9a
Minor: migrate remaining scanReduceIndexed usages
2020-09-11 19:08:04 +03:00
Alexander Udalov
ae9c1af883
Do not use erroneous unsigned/signed comparison in UnsignedArraysTest
...
The error SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED is suppressed in this
file, and JVM IR is not able to generate comparisons of UInt and Long
(KT-41780).
2020-09-10 19:27:09 +02:00
Roman Artemev
8a810e2a5e
[JS IR] Add runtime API to throw ISE in case of compiled code with errors
2020-09-01 14:53:07 +03:00
Alexander Udalov
da6d904c6e
Suppress code warnings in kotlin-stdlib
2020-08-20 20:30:34 +02:00
Alexander Udalov
9b94e073af
Fix warnings related to OptIn/UseExperimental
2020-08-17 21:18:19 +02:00
Alexey Trilis
d86c14243e
Add @SinceKotlin to kotlinx.browser and kotlinx.dom packages
...
Add @DeprecatedSinceKotlin to kotlin.browser and kotlin.dom packages
2020-08-10 18:08:19 +03:00
Valeriy.Vyrva
30ff886754
Improve docs for createTempDir/createTempFile
...
#KT-35218
2020-08-10 17:29:25 +03:00
kvirolainen
36984009e9
Add samples for flatten, unzip functions
2020-08-10 03:40:13 +03:00
Elijah Verdoorn
41d5615608
Add samples for mapNotNull, find, getOrNull functions
2020-08-10 03:39:49 +03:00
Dat Trieu
1009a240f2
KT-20357: Add samples for filter functions
2020-08-06 23:41:12 +03:00
Julian Kotrba
88f508446a
Make repeat example more expressive
...
This commit adds the zero-based index of current iteration from the passed HOF "action" of the repeat function to its associated code sample.
KT-20357
2020-08-04 00:48:06 +03:00
Ilya Gorbunov
a5178bb826
Minor: fix toJavaDuration docs
2020-08-04 00:34:15 +03:00
Ilya Gorbunov
99eb7f391b
Fix doc wording around covariance/invariance
2020-08-04 00:33:05 +03:00
Stanislav Erokhin
67090e1afb
Move KTypeProjection to separate file
2020-07-22 11:08:14 +03:00
Ilya Gorbunov
bace1b8055
Increase stdlib-js mocha test timeouts to 10s
...
Some tests often do not fit into the default timeout when running tests
in parallel on CI.
2020-07-21 05:43:38 +03:00
Abduqodiri Qurbonzoda
a05681001f
Mark with @DeprecatedSinceKotlin #KT-22423 and #KT-28753
2020-07-17 02:39:20 +03:00
Ilya Gorbunov
87cb6372a0
Specify DeprecatedSinceKotlin for recently deprecated min/max funs
...
#KT-38854
2020-07-16 22:58:25 +03:00
Anton Bannykh
e45cd02b01
KLIB: add EmptyPackageFragment's to fix ModuleDescritor.getSubPackagesOf
2020-07-15 20:42:23 +03:00
Abduqodiri Qurbonzoda
d2c9fc41f1
Replace @LowPriorityInOverloadResolution with @DeprecatedSinceKotlin #KT-37101
2020-07-15 20:36:57 +03:00
Vyacheslav Gerasimov
742b98bed6
Build: Fix stdlib-js-ir commonMainSources task dependency on version
2020-07-14 20:29:11 +03:00
Ilya Gorbunov
010e530ac4
Make common KClass extend common KClassifier
...
It already does that in all platforms.
Add KClass common API test.
2020-07-13 23:20:52 +03:00
Ilya Gorbunov
dd47962ad0
Extract current Kotlin version value into a separate class
...
In order to selectively ignore it during classpath normalization,
and do not recompile all the dependencies when just the version value
changes.
2020-07-10 19:12:07 +03:00
Ilya Gorbunov
20683d62a6
Postpone introducing common StringBuilder.capacity() function
...
Its support complicates JS StringBuilder implementation with no actual
performance improvements. Benefits of having capacity() function
in common code are also not completely clear.
Relates to KT-33069
#KT-40168
2020-07-10 18:49:39 +03:00
Ilya Gorbunov
2f3e1dcbc6
Add EXACTLY_ONCE contract to suspendCoroutine* functions
...
Update line numbers in the affected test.
2020-07-10 01:05:16 +03:00
Ilya Gorbunov
1a32fdf6d7
Add EXACTLY_ONCE contract to functions that call their lambda parameter once
...
KT-35972
2020-07-10 01:05:16 +03:00
Ilya Gorbunov
c85432b2f9
Fix typo in kotlinx.dom docs
2020-07-10 01:05:16 +03:00
Vyacheslav Gerasimov
697bb04d46
Build: Setup jvmTarget 1.6 for several common modules
...
Some modules depending on them target jvm 1.6 and can't depend on
jvm 1.8 module in Gradle 6.5.
2020-07-09 19:31:20 +03:00
Vsevolod Tolstopyatov
3270c7e016
Introduce CancellationException
...
#KT-39126 Fixed
2020-07-02 11:01:28 +03:00
Mikhail Zarechenskiy
b0b8d40b71
Update ApiTest.testIrStdlib for JS, an addition to 9be8c5b5
2020-06-29 21:09:19 +03:00
Vyacheslav Gerasimov
77a8cf4e66
Build: Use attributes to resolve test dependencies in jps build mode
2020-06-29 18:17:08 +03:00
Mikhail Zarechenskiy
87014f816c
Update ApiTest.testStdlib for JS, an addition to 9be8c5b5
2020-06-29 17:04:42 +03:00
Abduqodiri Qurbonzoda
d3fb9cc5f3
Deprecate with error mixed Int/FP contains operator for ranges KT-22423
2020-06-29 12:18:19 +03:00
Ilya Gorbunov
94ab50a21a
Fixup stdlib-js api dump
...
Some strange effect related to loading types from kotlin.reflect.
2020-06-26 13:52:05 +03:00
Abduqodiri Qurbonzoda
a04f70fb36
Fix min/maxByOrNull function samples
2020-06-26 07:16:01 +03:00
Ilya Gorbunov
8dfcebf542
Expose KTypeProjection.STAR constant in a field
...
#KT-30083
2020-06-25 18:25:24 +03:00
Ilya Gorbunov
53cbcfac5a
Validate arguments of KTypeProjection constructor
...
#KT-34596 Fixed
2020-06-25 18:25:24 +03:00
Ilya Gorbunov
d41e8ed4ad
Annotate KTypeProjection factory methods with JvmStatic
...
#KT-30084 Fixed
2020-06-25 18:25:24 +03:00
Ilya Gorbunov
33150a0809
KT-38817 capitalize uses title case for the first char where available
...
This unifies its behavior with new capitalize overload with Locale.
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2020-06-24 16:45:09 +03:00