Ilya Gorbunov
17ebb36128
Test Throwable properties in JS, don't work as expected, commiting as ignored.
...
#KT-10911
2016-02-08 18:10:46 +03:00
Alexey Andreev
e9d5d8f0fe
[KT-7683] Implement translation of 'when .. in' clause to JS
2016-02-03 19:08:58 +03:00
Alexander Udalov
04026dbe84
Make Array<T>(size, init) a constructor of Array
...
It's not marked as inline, this is why 'crossinline' was added in
jaggedArray.kt/jaggedDeep.kt. Will be fixed in the following commits
2016-01-28 03:10:37 +03:00
Denis Zharkov
ba506170e9
Use 'mapToCallableMethod' for delegateTo signature calculation
...
#KT-9707 Fixed
2016-01-21 11:24:23 +03:00
Dmitry Jemerov
d6a11b839b
js: cleanup 'public', property access syntax
2016-01-07 18:15:19 +01:00
Ilya Gorbunov
da4b1ae0fb
Cleanup in js modules
2015-12-29 18:04:16 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00
Alexey Tsvetkov
199827635f
Reserve 'typeof' as a keyword
2015-12-10 21:26:41 +03:00
Andrey Breslav
434082cadb
'yield' reserved as a keyword
2015-12-09 17:10:30 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Michael Nedzelsky
a7636126a1
fix tests for js
2015-11-23 22:32:40 +03:00
Ilya Gorbunov
af9020a010
Update Range and Progression built-in implementations in js library.
...
No need to define special method mapping for js ranges/progressions.
Support progression companion objects' function fromClosedRange as intrinsic
2015-11-11 03:53:51 +03:00
Sergey Mashkov
137a20e0ed
JS: better diagnostics for missing test files
2015-11-05 14:41:30 +01:00
Sergey Mashkov
3b68aaa84c
JS: fix rhino 64k issue
2015-11-05 14:41:29 +01:00
Sergey Mashkov
29973d714e
Remove DOM utilities, put temporary to JS to keep compatibility
2015-11-05 14:41:28 +01:00
Dmitry Jemerov
19af88738b
remove Jet from names of classes in tests: phase 2
2015-11-03 14:06:04 +01:00
Mikhail Glukhikh
f8a70302ac
Cleanup: get rid of effective visibility warnings
2015-10-28 14:31:51 +03:00
Alexey Tsvetkov
294559a94f
Overridable val should not be treated as constant
...
#KT-9443 fixed
2015-10-26 19:23:09 +03:00
Dmitry Jemerov
49033e0002
rename Jet* classes to Kt*
2015-10-19 21:35:30 +02:00
Mikhail Glukhikh
14e38ff6d4
data deprecations cleanup: reserved word tests fixed
2015-10-19 15:24:36 +03:00
Dmitry Petrov
8cd624a58a
Drop package facades: code cleanup in Kotlin project.
2015-10-15 10:33:47 +03:00
Alexander Udalov
ced1edcf98
Prohibit callable references to object members
...
To be able to make them more useful in the future, i.e. bound to the object
instance
2015-10-14 20:45:56 +03:00
Dmitry Petrov
5d9ee7efee
Java 8 rules for method overrides:
...
- base class method wins against a (default) interface method,
so an abstract base class method should always be implemented
in a derived class;
- interface methods clash regardless of abstract/default
with possibly undefined behavior at run-time,
so a class or interface should always define its own method
for methods inherited from multiple interfaces and not from base class;
- meaningful diagnostics for class inheriting conflicting JVM signatures.
Since no override will happen under Java 8 rules,
ACCIDENTAL_OVERRIDE is misleading for this case;
- update testData.
2015-10-12 14:12:31 +03:00
Mikhail Glukhikh
d1ab5168ec
Error messages about "var with open / custom setter initialization" changed accordingly with the new backing field syntax
2015-10-09 21:06:29 +03:00
Mikhail Glukhikh
6914d09297
Old backing field with dollar is now forbidden
2015-10-09 21:06:26 +03:00
Denis Zharkov
35783f129b
Generate INSTANCEOF barrier in bridges for Collection.contains
2015-10-09 14:40:33 +03:00
Ilya Gorbunov
80e4ba8712
Replace splitBy with split
2015-10-07 22:36:27 +03:00
Ilya Gorbunov
25df3aac11
Replace parent with parentFile, relativePath with relativeTo
2015-10-07 22:36:25 +03:00
Ilya Gorbunov
3106458cc4
Replace assert with lazy assert, times with repeat.
2015-10-07 22:36:23 +03:00
Denis Zharkov
252c82abe3
Generate bridges for FAKE_OVERRIDE properties
...
The same way it's done for function, just call generateBridges for accessors
#KT-9442 Fixed
2015-10-07 08:46:34 +03:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Zalim Bashorov
98867addc9
Regenerate tests for JS reserved words
2015-09-22 15:00:38 +02:00
Mikhail Glukhikh
028e0ec59a
"field": JS translation
2015-09-21 15:47:57 +03:00
Zalim Bashorov
7036b36a94
Minor: replace some usages of (old) package facade with new package parts
2015-09-10 18:49:11 +03:00
Ilya Gorbunov
4f9e2c24d1
Exclude common file asserts.kt from tests using StdLib, as its methods conflict with kotlin.test.* methods.
2015-09-08 10:26:54 +03:00
Ilya Gorbunov
e61d202d71
Dropped test that tested nothing: there were no files to compile, except common asserts.kt
2015-09-08 10:26:39 +03:00
Ilya Gorbunov
63110dcdf8
Remove StdLibArraysTest and include collections/ArraysTest.kt into StdLibTestToJSTest smoke tests instead.
...
Move helper methods, so they are available in JS semantics tests.
2015-08-27 00:09:04 +03:00
Pavel V. Talanov
add8387141
Fix some problems with jsCode function
...
1. Fix a bug in frontend when passing non-String constant led to exception
2. Fix a bug in backend when passing non-JetStringTeplate string constant led to exception
3. Avoid recomputing constant argument in backend
2015-07-21 20:52:42 +03:00
Zalim Bashorov
f7ccb3819e
JS: don't pollute object with $metadata$
...
#KT-8126 Fixed
2015-07-13 15:52:57 +03:00
Alexander Udalov
c3b97e0668
Simplify function hierarchy in reflection
...
Get rid of all classes except kotlin.reflect.KFunction, which will be used to
represent all kinds of simple functions.
Lots of changes to test data are related to the fact that KFunction is not an
extension function (as opposed to KMemberFunction and KExtensionFunction who
were) and so a member or an extension function reference now requires all
arguments be passed to it in the parentheses, including receivers. This is
probably temporary until we support calling any function both as a free
function and as an extension. In JS, functions and extension functions are not
interchangeable, so tests on this behavior are removed until this is supported
2015-07-10 20:10:08 +03:00
Alexander Udalov
1a3209e1dc
Drop traits with required classes
...
#KT-4771 Rejected
2015-06-17 16:23:58 +03:00
Zalim Bashorov
289efb8984
JS backend: don't fail when invoke call got extension receiver implicitly
...
#EA-67456 Fixed
2015-06-17 11:17:08 +03:00
Zalim Bashorov
65adc3ac02
JS backend: don't use octal numbers when render non-latin symbols, because of it prohibited in strict mode
...
#KT-7921 Fixed
2015-06-17 11:17:08 +03:00
Zalim Bashorov
9d32f5e8ed
Minor in JS backend tests: use checkFooBoxIsOk instead of fooBoxIsValue
2015-06-03 23:09:17 +03:00
Zalim Bashorov
92457543bc
JS backend: fix equality check for nullable types
...
* Generate simple check when compare with `null` literal.
* Use Kotlin.equals if type of receiver or argument is nullable.
* Don't call equals method if any of receiver or argument is null (at runtime, not only literal). For more information see KT-4356.
#KT-7530 fixed
#KT-7916 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
6aaccae6a9
JS backend: compare enum entries strictly
...
#KT-7840 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
4f0a858e93
JS backend: fix tests after move testTrue and testFalse to common place
2015-06-03 23:09:16 +03:00
Zalim Bashorov
ca4ce48801
JS backend: fix compiler crash on for with empty body
2015-06-03 23:09:15 +03:00
Zalim Bashorov
f90df7aa35
JS backend: fix compiler crash on empty then if block
...
#EA-68941 fixed
2015-06-03 23:09:15 +03:00
Zalim Bashorov
79b5652ce6
JS backend: added test which check that name of classes not mangled when we have a function with the same name in non-public API
2015-06-03 23:09:15 +03:00