Michael Nedzelsky
4b2d3ba3d0
JS backend: tests for KT-6401 JS: wrong result for code with many spread operator
2014-12-23 16:02:38 +03:00
Michael Nedzelsky
8074ab27ea
JS backend: fix KT-6112 jsonFromTuples is broken
...
#KT-6112 Fixed
2014-12-18 18:10:26 +03:00
Michael Nedzelsky
9f0f930e26
JS backend: tests for KT-6323 KotlinJS library modules
2014-12-18 02:08:52 +03:00
Zalim Bashorov
d666677958
JS backend: added dynamic.iterator to simplify the using "iterable" objects.
2014-12-16 17:48:25 +03:00
Ilya Ryzhenkov
828ba385ea
Cleanup ordering, improve API
2014-12-16 17:33:20 +03:00
Alexey Tsvetkov
c3f67c54bd
JS backend: added jsCode test cases
2014-12-15 19:16:20 +03:00
Svetlana Isakova
da8fdbd23e
More tests for varargs updated
2014-12-12 23:08:28 +03:00
Denis Zharkov
34d408eb7b
Simple workaround for problem described in KT-6437
...
JS backend generate invalid code when inlining within constructor using property
2014-12-11 16:04:04 +03:00
Zalim Bashorov
6b50d74056
JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names.
2014-12-11 13:17:49 +03:00
Zalim Bashorov
af82e69214
JS tests: added tests for dynamic.
2014-12-11 13:17:49 +03:00
Zalim Bashorov
e378bde43e
JS backend: fix "is Boolean" check.
2014-12-10 22:48:01 +03:00
Michael Nedzelsky
5bf1d73199
JS backend: tests for translation for extension property
2014-12-04 02:42:04 +03:00
Zalim Bashorov
b06096469a
JS backend: added the support nativeInvoke, nativeGetter, nativeSetter.
2014-12-01 15:27:34 +03:00
Alexander Udalov
8dae1b62dd
Add CharSequence.subSequence
...
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.
#KT-5956 Fixed
2014-11-27 20:38:19 +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
Michael Nedzelsky
5f576c4c05
JS backend: test for toGenerator from stdlib
2014-11-11 17:08:56 +03:00
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
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
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
64044800c9
JS stdlib: fix bug with using "__proto__" as element of DefaultPrimitiveHashSet.
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
ab6eff5a5b
JS backend: minor: remove ArrayList(Collection) from bridges/_commonFiles/javautil.kt
2014-10-13 19:25:02 +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
Michael Nedzelsky
b15963d3fb
JS backend: fix KT-5603 (Multiple catch): add tests
2014-10-09 19:31:51 +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
9b04e3e3fe
JS backend: use all generic parameters in mangling
2014-10-06 23:18:54 +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