Ilya Gorbunov
0ac85ad715
Document that sorting is stable in each platform
...
#KT-12473 Fixed
2019-01-17 18:38:37 +03:00
Ilya Gorbunov
56672c2564
Ensure stable sorting in MutableList.sort/sortWith
...
MutableList.sortWith now works correctly in JS_IR backend too
#KT-12473
2019-01-17 18:38:23 +03:00
Ilya Gorbunov
23950042f6
Clarify how elements of arrays are compared by contentEquals function
...
Add clarification only for the particular group of overloads including
arrays of object and floating point numbers.
#KT-22942 Fixed
2019-01-11 21:04:03 +03:00
Ilya Gorbunov
51eb21d44b
Provide stable sorting when JS engine sorting doesn't look stable
...
#KT-12473
2019-01-11 20:53:29 +03:00
Ilya Gorbunov
7c3c454654
Remove specialization of toTypedArray for LongArray and BooleanArray in JS
...
The default implementation for primitive arrays returns an array of correct type.
#KT-29187 Fixed
2019-01-11 20:53:29 +03:00
Roman Artemev
d35b20f764
[JS IR BE] Implement private members lowering to extract private methods from class and transform them into static function
...
* fix kotlin.Long
* update tests
2019-01-11 20:28:04 +03:00
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +03:00
Ilya Gorbunov
de1d15aa9a
Improve test coverage for contentEquals and minOf/maxOf
2019-01-11 17:41:52 +03:00
Pavel Punegov
122ec85bf0
Add ThreadLocal and SharedImmutable native annotations as OptionalExpectation
...
to kotlin.native.concurrent
2019-01-11 17:38:58 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Mikhael Bogdanov
dfee1787e5
Regenerate builtins
2019-01-02 14:47:48 +01:00
Ilya Gorbunov
9289a2c573
Remove redundant clause from 'until' function docs
2018-12-26 17:54:56 +03:00
Bernhard Posselt
19906f13ea
Update Maps.kt
2018-12-21 22:01:01 +03:00
Bernhard Posselt
300f68e0d8
Add documentation on how merging works for toMap() for Iterables, Arrays and Sequences
2018-12-21 22:01:01 +03:00
Ilya Gorbunov
7c7c11e916
Fix current Kotlin version to avoid changing it in local builds
2018-12-21 17:21:50 +03:00
Shagen Ogandzhanian
6dd69ea3d6
Support named constructors in idl-backed code generation
...
this resolves https://youtrack.jetbrains.com/issue/KT-27361
2018-12-21 14:53:59 +01:00
Ilya Gorbunov
614139755c
Minor: fix Random companion reference in docs
...
Random's companion is named 'Default' rather than 'Companion'
2018-12-21 14:17:25 +03:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Shagen Ogandzhanian
ca4521d57d
Support ClipboardEvent in definitions generated from idl
2018-12-18 15:07:34 +01:00
Shagen Ogandzhanian
44af5b783f
Introduce TrackEvent, MediaStreamTrackEvent-related IDL definitions
2018-12-18 12:19:12 +01:00
Shagen Ogandzhanian
c1f75d2324
Introduce idl definition for SVGMaskElement
2018-12-17 16:11:22 +01:00
Vadim Brilyantov
7fb43144d4
fix KotlinVersion and set it to be 1_3_0
2018-12-17 15:07:10 +03:00
Vadim Brilyantov
65982bbee8
disable statistics for 181 as FUS is only available since 182
2018-12-14 20:19:22 +03:00
Vadim Brilyantov
93d93cd40e
fix report kotlin targets for android case
2018-12-14 20:19:19 +03:00
Vadim Brilyantov
df5ec5c218
report stats for pullUp/pushDown refactorings
...
tmp
2018-12-14 20:19:19 +03:00
Shagen Ogandzhanian
714b4f25c0
Introduce better typing for on[event-name] attributes from idl
...
see https://upsource.jetbrains.com/kotlin/review/KOTLIN-CR-2548
2018-12-14 13:17:41 +01:00
Shagen Ogandzhanian
44da3c89b7
Introduce PointerEvent-related definitions
...
* Resolves https://youtrack.jetbrains.com/issue/KT-23932
* Backed by review https://upsource.jetbrains.com/kotlin/branch/KT-23932-POINTER-EVENT-FROM-REMOTE-IDL
2018-12-12 14:53:18 +01:00
Shagen Ogandzhanian
1f0bca12e1
Leave undefined values for undefined params in idl-generated code unassigned
...
https://upsource.jetbrains.com/kotlin/review/KOTLIN-CR-2535
2018-12-07 16:05:00 +01:00
Ilya Gorbunov
7b08f6f8f1
readLine: extend buffer to decode surrogate pairs from utf-8 correctly
...
CharBuffer had capacity to hold 2 chars, which was not enough to append
a surrogate pair when the buffer was not empty.
The buffer was extended and the decoding algorithm rewritten to deal with
a buffer of any length.
#KT-28572 Fixed
2018-12-07 17:42:09 +03:00
Ilmir Usmanov
1336e8f3e3
Take java 9 modules into account in coroutines debug metadata
...
reading
#KT-28237
2018-12-06 16:59:15 +03:00
Roman Elizarov
75e2dfda19
Added COROUTINE_SUSPENDED docs
...
Fixes KT-28488
2018-12-06 11:00:32 +03:00
Dave Leeds
6ff3ae3447
KT-20357: Add samples for commonPrefixWith and commonSuffixWith
2018-12-05 19:21:57 +03:00
Vyacheslav Gerasimov
508fe28781
Build: Add NoDebugJavaExec to filter out debugger arguments added by Idea
...
Workaround for IDEA-200192:
IDEA makes all JavaExec tasks not up-to-date and attaches debugger making our breakpoints trigger during irrelevant task execution
2018-12-05 16:23:25 +03:00
Shagen Ogandzhanian
b154d10cc5
Merge pull request #2013 from JetBrains/KT-16305-MUTATION_OBSERVER_INIT
...
Skip assignment for null-value ArrayLike object in idl-based generate…
2018-12-04 20:33:24 +01:00
Vyacheslav Gerasimov
17a60e3fd3
Build: use UtilityJavaExec task for compileJs and generateVisitors
2018-12-04 15:38:56 +03:00
Shagen Ogandzhanian
8294309e5b
Skip assignment for null-value ArrayLike object in idl-based generated code
2018-12-04 12:44:43 +01:00
Ilya Gorbunov
a534bfc32f
Move index overflow tests to another test source set
...
To avoid reporting them as ignored and to make it more easy to run them
when needed.
2018-11-30 07:27:07 +03:00
Roman Artemev
c5922bf74b
Refact stdlib generator, add support for different backends
...
[JS IR BE] Runtime fixes
* Do not generate external declarations for IR BE
* Move `arrayToString` helper function out of shared JS stdlib
* Fix arrays type check for IR BE
2018-11-29 22:04:53 +03:00
Ilya Gorbunov
d7ff6c48ea
Leave only 1.3 JS IR runtime sources
...
Update exclusions after merging coroutines sources into stdlib.
2018-11-28 06:05:03 +03:00
Ilya Gorbunov
5c94ef229b
Move release coroutines sources into the corresponding stdlib sourcesets
2018-11-28 06:05:03 +03:00
Ilya Gorbunov
7d61a2de73
Reformat coroutine sources
2018-11-28 06:05:03 +03:00
Ilya Gorbunov
ec3692026d
Rename coroutines sourceset to coroutinesExperimental
...
Restore experimental coroutine tests as they were before e22ca022
and compile and run them twice:
- first time with LV=1.2
- second time with LV=1.3
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
673844a059
Move coroutine tests to other stdlib-jvm tests
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
cff32e46bb
Provide expect declarations for String.startsWith/endWith overloads
...
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Ilya Gorbunov
3d2a3cddff
Stop producing empty kotlin-stdlib-coroutines jar
2018-11-21 03:42:27 +03:00
Ilya Gorbunov
7d3de70754
Correct replacement for js Math.log
...
The correspondent kotlin.math function is ln(x)
#KT-28251 Fixed
2018-11-17 00:20:54 +03:00
Ilya Gorbunov
e81859b50d
Document exceptions that can be thrown from MatchGroupCollection.get(name)
2018-11-16 20:29:38 +03:00
Ilya Gorbunov
8d0d6d1bf3
Do not mutate Matcher in MatchResult.next()
...
Instead of mutating the matcher create a new one when `next()` is called.
This allows getting named groups from that matcher later.
Add lookbehind in matchSequence test to ensure this change doesn't alter
the existing behavior.
Also fixes #KT-20865
2018-11-16 20:29:38 +03:00
Ilya Gorbunov
f76c0568ea
Additionally run kotlin-stdlib-jdk8 tests on jdk9 and jdk10/11 if available
2018-11-16 19:46:38 +03:00
Ilya Gorbunov
c0a7c5cff4
Refactor: use ArrayDeque instead of Stack in FileTreeWalkIterator
...
Cleanup modifiers, replace if with when.
#KT-27251 Fixed
2018-11-16 19:40:40 +03:00