Ilya Gorbunov
04bbf23936
Add explicit imports of kotlin.ranges more specific functions
...
The extensions 'contains' and 'reversed' from kotlin.ranges can be more
specific for IntRange, LongRange, etc than the same functions from
kotlin.collections, yet they lose in overload resolution to the latter
ones when invoked from kotlin.collections package
because of same package package extensions are preferred (KT-30633).
2019-04-02 21:28:33 +03:00
Ilya Gorbunov
b74fe7c1c3
Clarify floor and ceil docs (KT-30418)
2019-03-19 03:12:12 +03:00
Ilya Gorbunov
b0a234ec74
Minor: collection docs formatting
2019-03-19 03:12:09 +03:00
Abduqodiri Qurbonzoda
a369496aca
Throw IOOB on invalid index in JS StringBuilder.get to adhere contract
2019-03-15 17:40:31 +03:00
Abduqodiri Qurbonzoda
ba61695a45
Check for index-out-of-bound in elementAt function (KT-30051)
2019-03-12 21:39:09 +03:00
Abduqodiri Qurbonzoda
fc85781bfc
Implement asList, slice & sliceArray extension functions for UArrays
2019-03-08 23:34:34 +03:00
Kevin Peek
565727e302
KT-20357 - Add sample for Regex.findAll()
2019-02-18 21:05:46 +03:00
Svyatoslav Kuzmich
29eb3c745c
[JS IR BE] Support two versions of test runtime: full and reduced
2019-01-24 16:14:40 +03:00
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
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +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
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
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
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
Shagen Ogandzhanian
8294309e5b
Skip assignment for null-value ArrayLike object in idl-based generated code
2018-12-04 12:44:43 +01: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
5c94ef229b
Move release coroutines sources into the corresponding stdlib sourcesets
2018-11-28 06:05:03 +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
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
5f4e8bf4fb
Correct abstract mutable collections declarations in kotlin-stdlib-common
...
Add SinceKotlin(1.3) to the new and substantially changed common declarations
#KT-28091
2018-11-09 13:39:44 +03:00
Ilya Gorbunov
c8caed5b6f
Duplicate MutableList.add docs in AbstractMutableList.add
...
Because the documentation inheritance doesn't work as desired here.
2018-10-23 22:21:25 +03:00
Ilya Gorbunov
4a10d954fc
Unify and improve Regex docs
2018-10-22 17:14:46 +03:00
Ilya Gorbunov
63c5e18149
capitalize/decapitalize docs in stdlib/js
2018-10-22 17:14:45 +03:00
Ilya Gorbunov
ac5eeb885f
Unify AbstractMutableMap JS docs
2018-10-22 17:14:45 +03:00
Ilya Gorbunov
7fc6f06b70
Correct parameter reference in copyInto docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
ebe9d59df7
Unify print/println/readLine docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
406bd7c980
Minor: split math sources into regions
2018-10-22 17:14:44 +03:00
Roman Artemev
c496d8ed50
Fix Char.toLowerCase/Char.toUpperCase extensions
2018-10-19 14:03:06 +03:00
Svyatoslav Kuzmich
5a057f8ca6
[JS IR BE] Support 'is Number' and 'is Comparable<>'
2018-10-14 23:53:03 +03:00
Alexander Udalov
55c8b35eee
Remove unneeded default imports in stdlib and tests
2018-10-01 13:39:02 +02:00
Ilya Gorbunov
974837654e
Remove workaround for complex default value in Array.copyInto
...
#KT-22818
2018-09-22 18:24:00 +03:00
Anton Bannykh
2e709a81fa
[JS IR BE] Arrays, varargs
2018-09-18 14:36:20 +03:00
Ilya Gorbunov
b1c2daf1fe
Stdlib: fix name shadowing and names of overridden method parameters
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
bf4be12239
Stdlib: review and suppress warnings
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
2d356b89b5
Specialize contentDeepEquals/HashCode/ToString for arrays of unsigned types
...
#KT-26388
2018-09-13 06:10:10 +03:00
Ilya Gorbunov
62ffacab09
Raise deprecation level for jsClass functions
...
Suppress error in tests
#KT-21703
2018-09-11 18:15:04 +03:00
Ilya Gorbunov
35f42c7d35
Raise deprecation level for kotlin.Synchronized and Volatile, remove replacements
...
They are js-only but not supposed to be used in Kotlin/JS code, so their
usages should be just removed.
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
010b36be1f
Raise deprecation level for kotlin.js.Math functions
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
fbd2322ffa
Add replacement information for deprecated JQuery members
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
c3f654a71c
Stdlib/JS: drop deprecated CharSequence.size
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
e22ca022d4
Switch sourcesets of experimental and release coroutines
...
- Move experimental coroutines out of the main source root.
- Include experimental coroutines into the coroutines source set.
- Include release coroutines into the main source set.
2018-09-07 01:03:53 +03:00
Ilya Gorbunov
623adbfe4a
Do not use JVM-specific annotations in pure-JS generated sources
2018-08-31 04:17:42 +03:00