Zalim Bashorov
3a87049359
JS/RTTI. Fix build and tests
2016-05-05 17:24:23 +03:00
Alexey Tsvetkov
390d71ac8d
JS/RTTI. Fix RegExpMatch
2016-05-05 17:24:21 +03:00
Alexey Tsvetkov
3fd387d4a6
JS/RTTI: support unsafe casts
...
#KT-2670 fixed
2016-05-05 17:24:13 +03:00
Ilya Gorbunov
ae2e3f1811
kotlin-test: add assertFails overload with message.
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
4b533b297e
reified assertFailsWith available in kotlin-test for JS
...
#KT-11346
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
a5fd95c7d9
JS: Make AbstractList.size pure abstract.
...
#KT-7228 Fixed
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
f35dc47b4e
Optimize snapshot operations to return special collection implementations when result is empty or has single element.
...
#KT-9990 Fixed
2016-03-31 21:30:59 +03:00
Ilya Gorbunov
d5d19f5595
Make Map.plus accept Map out-projected by key type as either operand (receiver or parameter).
...
#KT-11301 Fixed
2016-03-31 17:20:58 +03:00
Ilya Gorbunov
ab68b49a70
Introduce RandomAccess to JS.
...
Make EmptyList support RandomAccess.
#KT-10794
2016-03-30 21:06:18 +03:00
Ilya Gorbunov
d6506d9770
Minor: reformat code in JS stdlib
2016-03-10 23:24:29 +03:00
Ilya Gorbunov
0cd0554078
JS: Remove unsupported Enumeration declaration.
...
Relates to #KT-7480
2016-03-01 14:01:39 +03:00
Ilya Gorbunov
e5dbb65ff7
JS: Remove declarations of unsupported SortedSet and TreeSet, make toSortedSet() jvm-only.
...
Fix completion test.
Relates to #KT-7480
2016-03-01 14:01:38 +03:00
Ilya Gorbunov
06af22b2c1
JS: Remove LinkedList declaration since the implementation is missing.
...
#KT-7480 Fixed
2016-02-27 02:49:05 +03:00
Ilya Gorbunov
f025a3b8c4
Cleanup: rename parameters to match overriden method (in private implementations).
...
Remove some redundancy.
2016-02-26 21:54:55 +03:00
Ilya Gorbunov
029b918ec9
Another CharSequence.repeat implementation in JS from polyfill of String.repeat.
...
#KT-3064
2016-02-26 01:26:05 +03:00
Ilya Gorbunov
f564adfdd4
Optimize trivial cases of CharSequence.repeat. Provide CharSequence.repeat for JS.
...
#KT-3064 Fixed
2016-02-26 01:23:30 +03:00
Ilya Gorbunov
7997aea5c3
Make Destructured nested class of MatchResult interface in JS too.
2016-02-21 04:18:09 +03:00
Ilya Gorbunov
6b1ed8fd61
JS: use slice() instead of slice(0) to copy arrays (minor).
2016-02-18 17:37:33 +03:00
Ilya Gorbunov
cbd38f007c
JS: Do not create a copy of already cloned vararg array.
...
JVM: Do not create copy of vararg array it it's already Object[].
2016-02-18 17:37:31 +03:00
Ilya Gorbunov
947fd84f1e
Minor: reorder primitive specializations in generated code (according to the order they defined in java).
2016-02-02 22:06:34 +03:00
Ilya Gorbunov
47d580cbc5
Inline-only in kotlin.text
2016-02-01 22:09:11 +03:00
Ilya Gorbunov
56c5758db1
Inline-only in kotlin and kotlin.system packages, split Float/Double extension implementations for JVM and JS to make them inline-only in JVM.
2016-02-01 22:09:10 +03:00
Alexander Udalov
04026dbe84
Make Array<T>(size, init) a constructor of Array
...
It's not marked as inline, this is why 'crossinline' was added in
jaggedArray.kt/jaggedDeep.kt. Will be fixed in the following commits
2016-01-28 03:10:37 +03:00
Alexander Udalov
9e8b6571f4
Make primitive array factory functions constructors
2016-01-28 03:10:19 +03:00
Ilya Gorbunov
8d02467e6d
Introduce plusElement and minusElement to disambiguate situations like List<List<T>> + List<T>
...
#KT-9992 Fixed
2016-01-27 00:00:01 +03:00
Ilya Gorbunov
23080f78f7
Map.getOrPut: treat nulls as missing values.
2016-01-26 11:49:18 +03:00
Denis Zharkov
982dfa9183
Minor. Specify variables type explicitly
...
It's needed because 'assertEquals' has 'OnlyInputType' annotation
on type parameter, and type of 're.exec(string)!!' is 'Array<String?>',
while 'arrayOf("A5D5", "A5", "D5")' is 'Array<String>'
2016-01-22 19:17:22 +03:00
Ilya Gorbunov
768a23f7eb
Drop deprecations: functions that were converted to properties.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
91f4cf0ebc
Drop Progression<T> and its deprecated properties: start, end, increment.
...
Drop deprecated range extensions.
Make progression constructors private.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
7896e58afc
Rename sequence function to generateSequence
2016-01-22 01:13:31 +03:00
Ilya Gorbunov
dbcad08a35
Regex: MatchResult.groupValues do not exclude zeroth group, use the same indices as in groups collection.
...
Provide destructured property for destructured assignment.
2016-01-22 00:59:13 +03:00
Ilya Gorbunov
3459a24b0a
Regex: Introduce MatchResult.groupValues to get list of numbered group values exlcuding zeroth group with the entire match.
2016-01-22 00:56:08 +03:00
Ilya Gorbunov
5bbce7a1de
Deprecate 'comparator { ... }' in favor of Comparator SAM-constructor. Provide SAM-like constructor for JS.
2016-01-18 21:46:32 +03:00
Ilya Gorbunov
67ef790abc
Move comparison related functions to kotlin.comparisons, update imports in stdlib.
2016-01-18 21:46:31 +03:00
Ilya Gorbunov
f91c01919b
kotlin.test: 'fail' returns Nothing, 'assertFails' returns Throwable (not nullable).
...
Js tests now fail at the first failed assertion.
#KT-10289 Fixed
#KT-10369 Fixed
2016-01-14 06:03:40 +03:00
Ilya Gorbunov
f9ba35af64
Place Char constants into builtin Char companion object.
2015-12-24 06:18:51 +03:00
Ilya Gorbunov
de11ed4fc6
Primitive Companion objects do not longer implement IntegerConstants and FloatingPointConstants. All declarations moved inside companions.
...
IntegerConstants and FloatingPointConstants are dropped.
#KT-8897 Fixed
2015-12-24 06:17:03 +03:00
Ilya Gorbunov
03816373b3
Primitive array constructor-like functions with init lambda.
...
#KT-8831
Update testData and resolve ambiguity in newArray test
2015-12-18 17:54:09 +03:00
Ilya Gorbunov
188119aa83
Prepare to treat keys mapped to null same way as missing keys in Map extensions: getOrElse, getOrPut, getOrImplicitDefault.
2015-12-18 15:24:03 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00
Mikhail Glukhikh
233e8e58e8
Code cleanup: get rid of unnecessary !! / as, fake warning comments and issues
2015-12-15 12:00:58 +03:00
Ilya Gorbunov
f509937037
Move array constructors to builtins module back to kotlin package.
2015-12-14 04:29:11 +03:00
Ilya Gorbunov
871c5c66b4
Move code between packages (JS)
2015-12-14 03:49:46 +03:00
Ilya Gorbunov
dd2ae15531
Move code between packages.
2015-12-14 03:49:45 +03:00
Alexey Tsvetkov
199827635f
Reserve 'typeof' as a keyword
2015-12-10 21:26:41 +03:00
Yan Zhulanow
d21985493e
Mark functions with 'operator' in JS stdlib
2015-11-27 15:51:11 +03:00
Yan Zhulanow
278f1cd6ef
Fix "Placing function type parameters after the function name" errors in project
2015-11-27 15:51:11 +03:00
Ilya Gorbunov
0dbbb6c19c
Rename operand parameter of plus and minus for collections
2015-11-21 00:54:37 +03:00
Ilya Gorbunov
7e7a55bbe4
StdLib: Rename method parameters (Strings)
2015-11-21 00:54:19 +03:00
Ilya Gorbunov
a3cd86d2cd
StdLib: Rename method parameters (Collections)
2015-11-21 00:54:16 +03:00