Commit Graph

30 Commits

Author SHA1 Message Date
Ilya Gorbunov b10d869cd7 indexOf*, split, startsWith, endsWith: JS implementation 2015-03-31 02:24:35 +03:00
Zalim Bashorov 7668f44655 JS lib: added hasNext to Kotlin.ListIterator and fixed next.
#KT-6506 Fixed

Additionally made abstract AbstractList::get and AbstractCollection::size.
2014-12-29 19:15:32 +03:00
Zalim Bashorov 6c6ced2442 Minor in JS lib: avoid to use undefined literal which may be over overlapped. 2014-12-26 14:20:21 +03:00
Michael Nedzelsky 8074ab27ea JS backend: fix KT-6112 jsonFromTuples is broken
#KT-6112 Fixed
2014-12-18 18:10:26 +03:00
Ilya Ryzhenkov 828ba385ea Cleanup ordering, improve API 2014-12-16 17:33:20 +03:00
Alexander Udalov 93696ff9bd Make Array.indices extension property, move to stdlib
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Michael Nedzelsky dd86823480 JS backend: compile some builtins to builtins.js instead of stdlib 2014-11-11 17:09:00 +03:00
Zalim Bashorov 335771d580 JS lib: provide Kotlin object as parameter of IIFE. 2014-10-21 14:49:00 +04:00
Alexander Udalov 624e507ec2 Make enum classes comparable
#KT-3727 Fixed
2014-10-17 21:27:23 +04:00
Zalim Bashorov 55c19a632a JS lib: introduced different output strategies, and chose them depending of environment.
#KT-2994 Fixed
2014-10-14 18:02:28 +04:00
Michael Nedzelsky e73866040d JS backend: correct hierarchy for collections in kotlin_lib.js, maps.js 2014-10-14 16:46:01 +04:00
Zalim Bashorov f20ee6df4b JS backend: fixes in ranges:
* map all number ranges and progressions;
* add missed hashCode and static EMPTY to Range implementations;
* add missed hashCode and equals to Progression implementations;
* fix type of start and end in CharRange and CharProgression.
2014-10-13 21:25:56 +04:00
Michael Nedzelsky e5bbc2a0d8 JS backend: support for Throwable.getMessage 2014-10-09 19:32:00 +04:00
Zalim Bashorov 9b04e3e3fe JS backend: use all generic parameters in mangling 2014-10-06 23:18:54 +04:00
Michael Nedzelsky 6aff9803c4 JS backend: support for char type 2014-09-28 19:51:54 +04:00
Michael Nedzelsky dca6e31519 JS backend: add support for Long type 2014-09-28 19:51:48 +04:00
Michael Nedzelsky bdca7e0e37 JS backend: fix KT-5772 wrong code generated when <,<=,>,>= are used with explicit Comparable type
#KT-5772 Fixed
2014-09-23 14:50:17 +04:00
Alexander Udalov d52eff0825 JS: update support of enum's values() and valueOf() 2014-09-09 20:42:37 +04:00
Michael Nedzelsky cc4f84ffae JS backend: fix KT-5738 JS backend: result of toByte() should be in the range of bytes
#KT-5738 Fixed
2014-09-09 16:24:06 +04:00
Michael Nedzelsky a632e9e21d JS backend: fix KT-4601 JS: compareTo doesn't work on Numbers
#KT-4601 Fixed
2014-09-09 16:24:03 +04:00
Ilya Ryzhenkov 1842d30567 Implement equals for NumberRange in JavaScript. 2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov 516bae17d7 StringBuilder builder and appendln 2014-06-24 23:49:15 +04:00
Alexander Udalov 751f062f23 Add *Range.isEmpty(), *Progression.isEmpty() 2014-06-18 20:22:24 +04:00
Peter Rybin ab81d2e261 Supporting data class for JS backend 2014-05-06 15:45:28 +04:00
Ilya Ryzhenkov aee199b5b0 Add reverse() function to js version of StringBuilder 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov 962a738f1e Fix js RangeIterator and NumberProgression. 2014-04-24 12:59:40 +04:00
Zalim Bashorov 9bc5cc60ee JS stdlib: added some JSDoc annotations to handwritten js files. 2014-03-19 17:36:44 +04:00
Zalim Bashorov 31d8a75b1a Minor in JS backend: moved the Kotlin.modules declaration from koltin_lib.js to koltin_lib_ecma5.js 2014-03-19 17:36:43 +04:00
Zalim Bashorov 3455f6adcd JS backend: minor -- dropped some no longer necessary code. 2014-03-11 20:05:37 +04:00
Zalim Bashorov 442215e829 JS backend: testFiles -> testData 2014-03-11 20:04:00 +04:00