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
Zalim Bashorov
5b80eef381
Added ant step for compilation Kotlin stdlib to JS.
2014-10-06 23:18:49 +04:00
Alexey Tsvetkov
3f2d4b31be
JS test: added inline tests
2014-10-03 14:23:47 +04:00
Alexey Tsvetkov
1dcc096753
JS test: removed legacy inline tests
2014-10-03 14:23:47 +04:00
Svetlana Isakova
20f3403c80
Rename: this object, receiver argument -> dispatch receiver, extension receiver
2014-10-01 18:52:51 +04:00
Alexey Tsvetkov
b70466f9f3
KT-5673: added tests
2014-09-29 21:35:30 +04:00
Alexey Tsvetkov
3424142b65
KT-4773: added tests
2014-09-29 21:35:30 +04:00
Zalim Bashorov
916cfb7051
Regenerate testData for reservedWords after take was fixed.
2014-09-29 19:47:49 +04:00
Michael Nedzelsky
098b4c170f
JS backend: fix KT-4297 PrimitiveHashMap returns wrong keys (string instead of original type)
2014-09-29 17:46:33 +04:00
Michael Nedzelsky
9d49089041
JS backend: tests for char type
2014-09-28 19:51:58 +04:00
Michael Nedzelsky
6aff9803c4
JS backend: support for char type
2014-09-28 19:51:54 +04:00
Michael Nedzelsky
2e4e5c5d1d
JS backend: tests for Long type support
2014-09-28 19:51:51 +04:00
Michael Nedzelsky
dca6e31519
JS backend: add support for Long type
2014-09-28 19:51:48 +04:00
Michael Nedzelsky
d1d722546e
JS backend: prepare long.js for use in translator
2014-09-28 19:51:43 +04:00
Michael Nedzelsky
f42d7319a5
JS backend: original long.js from closure-library
2014-09-28 19:51:40 +04:00
Zalim Bashorov
5a5c4145f2
JS backend: added tests for reserved words.
2014-09-26 00:57:09 +04:00
Zalim Bashorov
ef60a7f776
JS backend: fixed crash when use lambda or local function inside enum method.
2014-09-26 00:57:09 +04:00
Michael Nedzelsky
6ed57f5e7a
JS backend: fix KT-5221 Invalid JS code generated for dec() and inc()
...
#KT-5221 Fixed
2014-09-25 15:12:44 +04:00
Michael Nedzelsky
e6a17cbd78
JS backend: tests for KT-5772
2014-09-23 14:50:20 +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
Michael Nedzelsky
1b60f39959
JS backend: test for KT-4381: JS: fails to iterate over Double range
...
#KT-4381 obsolete
2014-09-18 15:01:11 +04:00
Zalim Bashorov
507bfe49aa
Minor: "js.noImpl" -> "noImpl"
2014-09-16 19:34:57 +04:00
Zalim Bashorov
30208d5532
Minor: drop semicolon in package declaration everywhere.
2014-09-16 19:32:37 +04:00
Zalim Bashorov
838c384672
"js" -> "kotlin.js"
2014-09-16 19:32:37 +04:00
Zalim Bashorov
0c0d049de7
Minor in JS backend: drop unnecessary inline annotations.
2014-09-16 18:07:37 +04:00
Zalim Bashorov
9b065a89b9
JS backend: fix annotation class compilation.
2014-09-16 14:21:50 +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
Svetlana Isakova
61dc110cc7
Report 'break or continue outside a loop'
...
for break/continue outside a loop body (e.g. in loop condition)
#KT-5724 Fixed
2014-09-07 01:03:57 +04:00
Michael Nedzelsky
3578845e87
JS backend: add support for break, return, continue, throw in expressions
2014-09-03 20:48:52 +04:00
Michael Nedzelsky
f5963ebfe9
JS backend: test for KT-4225: Compiler to JavaScript produces semantically wrong code
...
This issue was fixed in build 0.8.541
2014-09-02 22:53:00 +04:00
Michael Nedzelsky
0e41411c75
JS backend: fix TranslationUtils.isCacheNeeded
2014-09-02 22:52:57 +04:00
Michael Nedzelsky
5967b6637f
JS backend: fix translation for || and && (create new tmp variable if needed)
2014-09-02 22:52:53 +04:00
Michael Nedzelsky
ab0df532bc
JS backend: for with label, fix KT-5257 JS: for with continue with label fails on runtime, and KT-5262 JS: wrong code for for over range when start greater end
...
#KT-5257 Fixed
#KT-5262 Fixed
2014-09-02 22:52:39 +04:00
Svetlana Isakova
9d366cb896
Prohibit local objects and enum classes
...
#KT-5402 Fixed
#KT-4838 Fixed
Resolve type of object inside local object as special, not supertype('Any').
Changed visibility of constructor of anonymous object to 'internal' to be able to resolve the following:
fun box(): String {
var foo = object {
val bar = object {
val baz = "ok"
}
}
return foo.bar.baz
}
The containing declaration of property initializers is constructor, so 'baz' was invisible inside private constructor.
2014-09-01 12:32:52 +04:00
Svetlana Isakova
7f33ad90a6
Report 'nested class accessed via instance reference' error
2014-09-01 12:32:50 +04:00
Alexander Udalov
619ffead17
Fix test data file name
2014-08-29 15:09:14 +04:00
Michael Nedzelsky
76757b14e2
JS backend: new tests for use break, continue and return in &&, ||, ?:
2014-08-22 02:17:11 +04:00
Michael Nedzelsky
d969e58b88
JS backend: support for while/do while with complex conditions
2014-08-22 02:17:08 +04:00
Michael Nedzelsky
53f0e6dcd2
JS backend: remove dangerous package, correct translation for call, assignments, binary operations, support try...catch as expression
...
#KT-5576 Fixed
#KT-5594 Fixed
#KT-3166 Fixed
#KT-5545 Fixed
#KT-5594 Fixed
#KT-5258 Fixed
JS backend: fix KT-4879: extra side effect when use when in default arguments
#KT-4879 Fixed
JS backend: improve and fix WhenTranslator, fix order of evaluation for condtitions, fix KT-5263 (JS: extra tmp when initialize val in when by expression with if)
#KT-5263 Fixed
2014-08-22 02:17:00 +04:00
Michael Nedzelsky
629d9a275b
JS backend: fix dangling else issue in generated code for JsToStringGenerationVisitor
...
JS backend: fix KT-5253: when with if inside
#KT-5253 Fixed
2014-08-22 02:16:56 +04:00
Michael Nedzelsky
bfa8fea5b8
JS backend: move patternMatching tests to expression/when
2014-08-22 02:16:53 +04:00