4225 Commits

Author SHA1 Message Date
Zalim Bashorov 25172d797e JS tests: disable Rhino optimization by default. 2014-10-06 23:18:52 +04:00
Zalim Bashorov 20f20f9441 JS tests: refactored StdLibTestBase and derived classes. 2014-10-06 23:18:52 +04:00
Zalim Bashorov b72b036bdb JS tests: refactored BasicTest class. 2014-10-06 23:18:52 +04:00
Zalim Bashorov c8278fd887 JS backend: refactor Configs. 2014-10-06 23:18:52 +04:00
Zalim Bashorov dd1fffae40 Minor in JS tests: load and cache kotlin_lib_compiled.js 2014-10-06 23:18:52 +04:00
Zalim Bashorov ce4bbb906b JS tests: disabled linter. 2014-10-06 23:18:51 +04:00
Zalim Bashorov 36bad02e67 Minor in JS tests: cleanup RhinoFunctionResultChecker and dependent classes. 2014-10-06 23:18:51 +04:00
Zalim Bashorov 0e075c7d5f JS backend: added the ability to turn off the inline optimization. 2014-10-03 14:23:53 +04:00
Alexey Tsvetkov 15e963de25 JS test: turn rhino optimization off for stdlib tests 2014-10-03 14:23:48 +04:00
Alexey Tsvetkov 3f2d4b31be JS test: added inline tests 2014-10-03 14:23:47 +04:00
Alexey Tsvetkov 987708680f JS test: JS AST access from 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
Alexey Tsvetkov 0484df00c3 JS test: added test utils 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 2e4e5c5d1d JS backend: tests for Long type support 2014-09-28 19:51:51 +04:00
Michael Nedzelsky d1d722546e JS backend: prepare long.js for use in translator 2014-09-28 19:51:43 +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
Zalim Bashorov 9b065a89b9 JS backend: fix annotation class compilation. 2014-09-16 14:21:50 +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
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 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
Alexander Udalov ec12d1d71d Fix deprecation warnings on junit.framework.Assert
Use org.junit.Assert instead everywhere. Also fix some other minor warnings
2014-08-29 12:34:07 +04:00
Pavel V. Talanov 7a1d5d63dc Rename: AnalyzerFacadeForJvm(Js) -> TopDownAnalyzerFacadeForJvm(Js) 2014-08-22 23:16:55 +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
Alexander Udalov 850fc25ee0 CLI: drop "-tags" argument
It was only used for the compiler inside the IDE, and there we already invoke a
special method which outputs HTML only
2014-08-13 11:10:41 +04:00
Alexander Udalov 4a7dc25406 CLI: add an extra MessageRenderer parameter to compiler exec
Is supposed to be used instead of the "-tags" CLI argument
2014-08-13 11:10:41 +04:00
Alexander Udalov cf431ffab0 CLI: change argument naming convention
As in all other Unix/POSIX tools and JVM language compilers, multiple words
comprising the argument name should be lowercase, separated by dashes
2014-08-13 11:10:40 +04:00
Michael Nedzelsky 12db8f1551 JS backend: support for explicit delegation
#KT-4479 Fixed
2014-08-09 10:24:02 +04:00
Zalim Bashorov fe4a4e712a JS backend: native trait exists only at compile time. 2014-08-08 21:26:43 +04:00
Zalim Bashorov ac4ffd7d2c JS backend: fixed accessing to nested native "elements".
#KT-4298 fixed
2014-08-08 21:26:43 +04:00
Alexey Kudravtsev 8f388c49c2 js.frontend new module 2014-08-07 08:51:10 +04:00
Michael Nedzelsky 145aa5a276 JS backend: tests for reflection support 2014-07-30 17:50:16 +04:00
Michael Nedzelsky c42a9840de JS backend: add support for reflection types 2014-07-30 17:50:11 +04:00
Alexander Udalov 917938e57b Update copyrights 2014-07-23 21:24:39 +04:00
Alexander Udalov 87439b8e0b Drop "-sourceFiles" in kotlinc-js
Use free arguments instead, as is done in kotlinc-jvm and all sensible
compilers everywhere

Also fix some cases of AntTaskTest to be able to run them locally
2014-07-23 21:24:38 +04:00