Alexey Tsvetkov
fb8918bbe6
JS backend: removed adding '$' to label suffix
2014-10-27 15:58:49 +03:00
Alexey Tsvetkov
78e12f7cfa
JS backend minor: removed license from test cases
2014-10-27 15:58:49 +03:00
Zalim Bashorov
8067a9ad56
Added regression tests for KT-2474 Range lacks reverse() in JavaScript backend
...
#KT-2474 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
66519d9973
Added regression tests for KT-1906 Support invoke() convention is js-backend (including classes implementing Function trait)
...
#KT-1906 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov
f3d9d21757
Added regression tests for KT-3518 Null pointer during null comparison in JS Backend.
2014-10-21 22:46:09 +04:00
Zalim Bashorov
b3e34cc2b4
Minor: added regression tests for downTo.
...
Adopted tests from patch attached to KT-2586.
2014-10-21 18:25:17 +04:00
Zalim Bashorov
fedbe26480
Minor: added regression tests for KT-4235
...
#KT-4235 Obsolete
2014-10-21 18:25:16 +04:00
Zalim Bashorov
335771d580
JS lib: provide Kotlin object as parameter of IIFE.
2014-10-21 14:49:00 +04:00
Zalim Bashorov
98d62283c7
JS lib: simplify DefaultPrimitiveHashSet.
2014-10-21 14:49:00 +04:00
Alexey Tsvetkov
1f87bea78f
JS backend: added support for nested labels with the same name
...
#KT-5891 fixed
2014-10-20 19:51:35 +04:00
Alexey Tsvetkov
09c98226c8
JS backend: added tests for labels
2014-10-20 19:51:35 +04:00
Alexander Udalov
624e507ec2
Make enum classes comparable
...
#KT-3727 Fixed
2014-10-17 21:27:23 +04:00
Michael Nedzelsky
34269e1a3e
JS backend: fix KT-6037 (default arguments in simple function with expression as body)
...
#KT-6037 Fixed
2014-10-17 00:46:05 +04:00
Alexey Tsvetkov
5fb5cea4a3
JS inline: fixed bug with simple return inline function, when result is not used.
...
When function body can be expression
(contains only one statement, and it's return),
result was saved to resultExpr, not body.
But when result was not used, resultExpr was not
used then.
Fixed by checking, that result is used in first place.
2014-10-16 17:16:10 +04:00
Zalim Bashorov
f0078b5e0f
JS lib: export Kotlin object when it possible.
...
It allows use kotlin.js on node.js without modifications.
2014-10-14 18:02:28 +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
Michael Nedzelsky
aa13a67371
JS backend: remove Iterable from FAKE_CLASS list, remove Iterator from StandardClasses
2014-10-14 16:45:57 +04:00
Michael Nedzelsky
edac2dd3bd
JS backend: tests for KT-2468
2014-10-14 16:45:54 +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
Zalim Bashorov
e54c838482
JS backend: temporary fix for CharSequence.get
2014-10-13 21:25:56 +04:00
Zalim Bashorov
64044800c9
JS stdlib: fix bug with using "__proto__" as element of DefaultPrimitiveHashSet.
2014-10-13 21:25:56 +04:00
Zalim Bashorov
2d634931f6
JS backend: use 0 as init value when calculating hashCode in data classes as in JVM backend.
2014-10-13 21:25:56 +04:00
Zalim Bashorov
ae39524a95
JS backend: compile primitive iterators from builtins as part of stdlib.
2014-10-13 21:25:55 +04:00
Zalim Bashorov
1b2aa205ec
Introduce assertNotEquals
2014-10-13 21:25:55 +04:00
Michael Nedzelsky
df8232c555
JS backend: minor: refactor ClassTranslator
2014-10-13 19:25:06 +04:00
Michael Nedzelsky
ab6eff5a5b
JS backend: minor: remove ArrayList(Collection) from bridges/_commonFiles/javautil.kt
2014-10-13 19:25:02 +04:00
Michael Nedzelsky
a63bbf317d
JS backend: translate 0L, 1L and -1L to Kotlin.Long constants
2014-10-13 17:51:48 +04:00
Michael Nedzelsky
e5c77d1242
JS backend: minor: move constant to Namer
2014-10-13 17:51:45 +04:00
Andrey Breslav
4a132599fd
getAllOverriddenDescriptors() moved to DescriptorUtils
2014-10-13 15:38:22 +04:00
Andrey Breslav
a737352b5d
Assertions when approximating platform types in delegation by expression
2014-10-13 15:38:13 +04:00
Pavel V. Talanov
b2c288b62a
Test super calls in enum literals
2014-10-10 18:12:56 +04:00
Pavel V. Talanov
bb5998048f
Test code generation for enum deriving from a trait
2014-10-10 17:43:33 +04:00
Michael Nedzelsky
12e76f3d04
JS backend: test for KT-2901: nullable type in string template
2014-10-10 17:04:18 +04:00
Michael Nedzelsky
e5bbc2a0d8
JS backend: support for Throwable.getMessage
2014-10-09 19:32:00 +04:00
Alexey Tsvetkov
5649797461
JS backend: catch fix refactoring
2014-10-09 19:31:57 +04:00
Michael Nedzelsky
787b8f72c5
JS backend: fix KT-5603 (Multiple catch): support for multiply catch clauses
2014-10-09 19:31:54 +04:00
Michael Nedzelsky
b15963d3fb
JS backend: fix KT-5603 (Multiple catch): add tests
2014-10-09 19:31:51 +04:00
Valentin Kipyatkov
852fc8bc5d
More renames of TypeRef to TypeReference
2014-10-08 15:41:47 +04:00
Michael Nedzelsky
8cafea9f5a
JS backend: add generateTraitMethods into ClassTranslator
2014-10-07 08:37:35 +04:00
Michael Nedzelsky
6d1b89bba3
JS backend: support for bridge methods
2014-10-07 08:37:27 +04:00
Michael Nedzelsky
541786a4db
JS backend: extract generateDelegateCall from DelegationTranslator into utils
2014-10-07 08:37:23 +04:00
Michael Nedzelsky
1e02064a5b
JS backend: add javauitl.kt to bridges/_commonFiles
2014-10-07 08:36:54 +04:00
Michael Nedzelsky
b84e5969e2
JS backend: fix get mangling name for generic methods with multiply upper bounds
2014-10-07 08:36:18 +04:00
Zalim Bashorov
9fabdf4587
JS backend: mangling functions for extension properties.
2014-10-06 23:18:54 +04:00
Zalim Bashorov
9b04e3e3fe
JS backend: use all generic parameters in mangling
2014-10-06 23:18:54 +04:00
Zalim Bashorov
10a9c0a434
JS backend: move mangling functions to separate util class.
2014-10-06 23:18:53 +04:00
Zalim Bashorov
5a63e34c19
JS tests: fix testData files
2014-10-06 23:18:53 +04:00
Zalim Bashorov
25172d797e
JS tests: disable Rhino optimization by default.
2014-10-06 23:18:52 +04:00
Zalim Bashorov
9290c3aad7
JS tests: HACK for use JsTestsAsserter in JS tests
2014-10-06 23:18:51 +04:00