Erokhin Stanislav
8c952ebfdb
JS backend: added delegate property support.
2013-08-14 20:05:27 +04:00
Erokhin Stanislav
adcb359c38
JS backend: added enum class support.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
3b5d5a4a95
JS backend: added identityEquals support.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
48cd8f4df4
JS backend: Fix override val property in ecma5.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
9d1ae5e3d9
JS backend: Add class object support.
2013-08-09 14:59:09 +04:00
develar
e786e62fd7
JS backend: fixed variable capturing in extension functions.
...
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.
(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
Zalim Bashorov
df11dbe7a5
JS backend: added tests check the closure fields when use it from nested functions in method.
2013-08-09 14:29:55 +04:00
Zalim Bashorov
185ec381e3
JS backend: added tests that checks constructing ArrayList with capacity.
2013-08-09 14:29:54 +04:00
develar
4e07c60541
JS backend: fixed AbstractCollection#equals.
...
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
develar
7c18ab3ca8
JS backend: cleanup strings code.
...
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
develar
678f6601dd
JS backend: made as intrinsic map accessing methods and fixed accessing to native map.
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
Zalim Bashorov
d4bf98de97
JS backend: fixed intrinsic of the typed array factory methods(intArray etc).
2013-08-09 14:29:50 +04:00
Zalim Bashorov
bf60cb2fee
JS backend: fixed the division operation for integral types.
...
#KT-2342 fixed
2013-07-23 19:10:54 +04:00
Zalim Bashorov
e8b95ca074
JS backend: simplify and rename tests for closure in nested functions.
2013-07-23 19:10:54 +04:00
develar
462e1bdc98
JS backend: fixed the variable capturing in deeply nested functions which mixed with the object declaration.
...
(cherry picked from commit 41cb0ab)
2013-07-23 19:10:54 +04:00
develar
4a37d56a1b
JS backend: fixed the variable capturing in deeply nested functions.
...
(cherry picked from commit cee29a6)
2013-07-23 19:10:54 +04:00
develar
2419fc36ed
JS backend: partial fix for #KT-2670 -- throw NPE when unsafe cast null value to not nullable type.
2013-07-23 19:10:54 +04:00
Zalim Bashorov
e292034141
JS backend: fixed trait inheritance implementation in ES3.
...
Now each traits in same hierarchy represent separate object, instead a single object.
2013-07-18 16:04:42 +04:00
develar
9cd22942e2
Translate when as if-else instead for loop.
2013-06-22 01:34:36 +04:00
Zalim Bashorov
ee5c7c8f5c
Added support spread operator in JS-Backend.
2013-06-15 00:52:02 +04:00
Zalim Bashorov
2bae647412
Make nullable check less verbose in JS-backend.
...
For check what variable is equal null or undefined enough to compare with null (or undefined).
See ECMAScript specification 11.9.1, 11.9.2, 11.9.3
2013-06-15 00:52:02 +04:00
Zalim Bashorov
60a2f4ef08
Added SingleFileTranslationTest#checkFooBoxIsOk without arguments which use test name as filename.
2013-06-15 00:52:00 +04:00
Zalim Bashorov
7680203de2
Fixed wrong linearization for open classes and traits.
...
openList changed during neighbors calculation because the same TLinkable object cannot be put into more than one TLinkedList at the same time.
#KT-3499 fixed
2013-04-11 20:26:47 +04:00
Zalim Bashorov
282c69eb6b
Fixed return value for ArrayList#remove in js library.
...
Removed unnecessary Kotlin.IndexOutOfBounds.
2013-03-27 18:40:10 +04:00
Zalim Bashorov
7143393172
Added support bitwise operations in js translator
2013-03-19 16:31:02 +04:00
Zalim Bashorov
9c2d5a8ddb
Fixed translating primitive arrays to js.
2013-03-19 16:31:02 +04:00
goodwinnk
bb53985c00
Spelling correction
2013-03-14 15:04:01 +04:00
Evgeny Gerashchenko
ec5331057a
Removed unnecessary final on local variables.
2013-03-13 14:12:50 +04:00
Zalim Bashorov
220682afe2
fixed mapping sort and max functions from java.util.Collections
2013-03-06 19:16:14 +04:00
Evgeny Gerashchenko
52b7ee6447
Happy new year 2013!
2013-01-28 18:58:08 +04:00
Evgeny Gerashchenko
e03eaf6dde
Removed @author javadocs from code.
2012-12-28 17:44:31 +04:00
Andrey Breslav
4e9f166a89
Fix Rhino dependency after updating to IntelliJ IDEA EAP 122.519
2012-10-10 15:57:36 +04:00
pTalanov
5bc4fc458a
Don't call redundant toString for variables of type Int
...
Refactor StringTemplateTranslator a little
2012-10-01 21:15:13 +04:00
pTalanov
622ad8cbb4
Add checks that test that there are no redundant toString calls for numbers and strings in string templates
2012-10-01 20:42:44 +04:00
pTalanov
0a1881d78e
Cosmetics refactoring in StringTest
2012-10-01 20:15:49 +04:00
Andrey Breslav
5eaa5b396b
Removing usages of tuples from test data
...
(KT-2358 Drop tuples)
#KT-2358 In progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
d6df227344
Fixing tests
...
This solution is in fact rather hackish, but the only way I see to fix it is to restructure the process of configuring test class paths altogether
2012-09-11 21:47:53 +04:00
Andrey Breslav
1b65ba644e
JS Back-end does not handle complex patterns any more
...
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Pavel V. Talanov
04da2f453a
Test for KT-2281.
...
#KT-2281 fixed
2012-08-31 14:35:54 +04:00
Pavel V. Talanov
e6e6f7e598
Object's constructor is private from frontend point of view.
...
Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
2012-08-29 15:58:27 +04:00
James Strachan
cbde1e1e46
added a little test case to see if using $ variables works in kotlin for JS generation (e.g. for angularjs support)
2012-08-22 16:17:40 +01:00
Pavel V. Talanov
52a933e179
Iterating over iterator.
2012-08-16 20:24:57 +04:00
Pavel V. Talanov
b0856cb364
Do not translate library (marked by annotation) declarations.
2012-08-14 18:48:24 +04:00
Pavel V. Talanov
954c1ee29f
Fix test file name.
2012-08-14 14:01:27 +04:00
Pavel V. Talanov
9dce8a9f33
Merge remote-tracking branch 'origin/master'
...
Conflicts:
js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/factories/RangesFIF.java
js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/patterns/NamePredicate.java
2012-08-14 13:04:38 +04:00
Pavel V. Talanov
71adfb57db
Drop libraryDirectories CLI option.
2012-08-14 12:44:52 +04:00
Pavel V. Talanov
554b43df68
Use jshint instead instead of jslint in js.tests.
...
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0 .
2012-08-14 12:44:48 +04:00
Pavel V. Talanov
310d926747
Test for KT-2388: if function passed as setTimeout callback, all "this" references will be point to HTML window instead of real object.
...
#KT-2388 fixed
2012-08-14 12:44:44 +04:00