Commit Graph

148 Commits

Author SHA1 Message Date
Michael Nedzelsky e5bbc2a0d8 JS backend: support for Throwable.getMessage 2014-10-09 19:32:00 +04:00
Michael Nedzelsky 2db1d128a0 JS backend: add ArrayList(Collection) into javautilCode.kt 2014-10-07 08:37:01 +04:00
Zalim Bashorov c142253fb9 JS stdlib: droped unnecessary jutilCode.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov 9827a5a21d Minor in JS stdlib: fix annotations.kt 2014-10-06 23:18:51 +04:00
Zalim Bashorov 23151936b6 JS stdlib: added volatile and synchronized. 2014-10-06 23:18:50 +04:00
Zalim Bashorov 80294f53ad JS stdlib: drop TuplesCode.kt -- switch to use tuples from stdlib. 2014-10-06 23:18:50 +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
Zalim Bashorov 507bfe49aa Minor: "js.noImpl" -> "noImpl" 2014-09-16 19:34:57 +04:00
Zalim Bashorov 38401d04d5 Minor: made noImpl generic to avoid using in wrong context. 2014-09-16 19:32:38 +04:00
Zalim Bashorov 0f136d5adc Minor in JS lib: dropped semicolon in package declarations. 2014-09-16 19:32:37 +04:00
Zalim Bashorov b0aa3e9988 JS stdlib: fixed visibility in some declarations. 2014-09-16 19:32:37 +04:00
Zalim Bashorov 838c384672 "js" -> "kotlin.js" 2014-09-16 19:32:37 +04:00
Zalim Bashorov 59b83679b3 Minor in JS stdlib: made stdlib warning less -- suppressed some BASE_WITH_NULLABLE_UPPER_BOUND warnings and fix one extra out projection. 2014-09-16 18:07:37 +04:00
Alexander Udalov f39c3041d2 Make MISSING_VAL_ON_ANNOTATION_PARAMETER error instead of warning
Annotation with a parameter that is not stored doesn't make any sense
2014-09-15 19:30:52 +04:00
Zalim Bashorov 223a14a855 Moved MutableMap.set from Maps.kt to MapsJVM.kt to avoid ambiguity when compile MapTest.kt by JS backend. 2014-07-16 21:35:10 +04:00
Zalim Bashorov 28228d23b1 JS stdlib: added missed constructors for HashSet, LinkedHashSet, HashMap and LinkedHashMap. 2014-06-26 16:33:14 +04:00
Ilya Ryzhenkov 516bae17d7 StringBuilder builder and appendln 2014-06-24 23:49:15 +04:00
Zalim Bashorov 6f5c88c21f JS stdlib: added LinkedHashMap abd LinkedHashSet. 2014-06-20 16:42:43 +04:00
Ilya Ryzhenkov 9ec78a437d Throw NoSuchElementException in appropriate cases #KT-4998 Fixed 2014-06-10 11:11:00 +04:00
Alexander Udalov d78d4bc44c Disallow extension properties with backing fields
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Ilya Ryzhenkov aee199b5b0 Add reverse() function to js version of StringBuilder 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov e37d8174c3 New stdlib generators 2014-03-19 20:25:11 +04:00
Ilya Ryzhenkov b60fd5acc1 Stable order in generated code for JS library 2014-03-19 20:25:10 +04:00
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Andrey Breslav da83154454 Nullability fixed for a JS DOM stub 2014-02-25 15:12:20 +04:00
Zalim Bashorov 5c0eeb59f6 JS backend: dropped unnecessary intrinsics in StringFIF. Added tests for CharSequence.size, CharSequence.length, CharSequence.length() and CharSequence.isEmpty(). 2014-02-03 13:31:24 +04:00
Zalim Bashorov 0cb016b187 JS stdlib: drop unnecessary code. 2014-02-03 13:31:23 +04:00
Mikhael Bogdanov d11311ec20 Test compilation fix 2013-12-02 18:30:42 +04:00
Zalim Bashorov cf717f8cb7 JS backend: minor fixes in k2js stdlib. 2013-11-17 03:21:55 +04:00
Erokhin Stanislav bb6fd90bd9 JS backend: move StringBuilder to java.lang. Fix append return type. 2013-11-05 20:55:49 +04:00
Evgeny Gerashchenko 2ae1a2c81b Added copyToArray intrinsic method.
#KT-3352 fixed
2013-10-01 15:11:30 +04:00
Evgeny Gerashchenko d56c59d9d7 Removed toArray() from collections (few tests are still failing).
#KT-3352 in progress
2013-10-01 15:11:30 +04:00
develar 711aee6026 JS backend: added replacer and space parameters to JSON.stringify
#KT-2983 in progress

(cherry picked from commit 058b147)
2013-09-20 17:21:14 +04:00
develar 764b5c5a90 JS backend: use generated code(org.w3c.*) for browser API.
#KT-2983 in progress

(cherry picked from commit 8b839a9)
2013-09-20 17:21:13 +04:00
Mohammad Shamsi 5584e6ce18 KT-3715 make Collection.notEmpty a property
Renamed "notEmpty()" methods to "isNotEmpty()" in following classes:
    - Collection
    - String
    - Array

Added "notEmpty" property to Collection class
2013-08-19 01:20:56 +08:00
develar 632d878877 JS backend: use native function for parseInt.
Add radix parameter to parseInt.

(cherry picked from commit b6be98d)
2013-08-09 14:29:55 +04:00
develar 222c05dd00 JS backend: made Json::get and Json::set intrinsic.
(cherry picked from commit b1692e1)
2013-08-09 14:29:54 +04:00
develar 8867c7a33f JS backend: fixed Map set/get -- should work with jet Map/MutableMap.
Added to PatternBuilder the ability to check that method has been overridden.
2013-08-09 14:29:54 +04:00
develar 421c896416 JS backend: removed unused extension function List::equals. 2013-08-09 14:29:54 +04:00
develar 411caef8ce JS backend: cosmetic changes in javautil.kt:
- added some methods to AbstractList
 - fixed codestyle
 - moved up LinkedList declaration
2013-08-09 14:29:53 +04:00
develar 1435bdb7c7 JS backend: made some exceptions more JS idiomatic -- translate Exception to Error, IndexOutOfBounds and IndexOutOfBoundsException to RangeError. 2013-08-09 14:29:53 +04:00
develar 995f898116 JS backend: added String.isEmpty
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar 7c18ab3ca8 JS backend: cleanup strings code.
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
Zalim Bashorov 9b09d5f6df JS backend: fixed String.split for the case when using regexp.
Added(overload) String.split with limit parameter.
2013-08-09 14:29:51 +04:00
develar f1c258f601 JS backend: make MutableMap.set as function intrinsic.
Fixed test WebDemoExamples2Test#builder.
2013-08-09 14:29:51 +04:00
develar 8302879991 JS backend: added reviver parameter to JSON.parse.
Fixed code style in json.kt.

(cherry picked from commit b3bf97c)
2013-08-09 14:29:51 +04:00
develar 1af35a6aff JS backend: make intrinsic array factory methods.
#KT-2511 fixed

(cherry picked from commit 31843c5)
2013-08-09 14:29:50 +04:00
develar 94152da97b JS backend: fixed return type for Window.setInterval -- should be Long instead Double? 2013-07-23 19:10:54 +04:00
develar d854f93640 JS backend: using native implementations in kotlin_lib.js for String.startsWith, String.endsWith and String.contains. 2013-07-23 19:10:53 +04:00
Evgeny Gerashchenko 5ccbce6de6 Got rid of "tuple" word all over the code. 2013-03-22 16:38:25 +04:00