Artem Kobzar
d39fd9416a
[Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test)
2023-02-18 13:26:53 +00:00
Ilmir Usmanov
d18672bfb1
Wrap continuation with ContinuationImpl on callable references
...
in startCoroutineUninterceptedOrReturn. Otherwise, the coroutine will
not be interceptable later.
Add a test, which checks, that intercepted continuation is released.
#KT-55869
2023-01-19 00:35:36 +00:00
Abduqodiri Qurbonzoda
ba2833b90f
Mark Base64 API with ExperimentalEncodingApi
2023-01-16 11:24:50 +00:00
Ilya Goncharov
816971ed47
[JS] Use correct source for stdlib jar, because of lazy java source sets
...
^KT-55862 fixed
2023-01-11 13:35:02 +00:00
Ilya Goncharov
0efb8a64bf
[Gradle, JS] Add fileTree for kotlin2jsCompile
2022-09-21 10:58:23 +00:00
Ilya Goncharov
eeb0520b48
[Gradle, JS] Migrate kotlin-stdlib-js
2022-09-21 10:58:21 +00:00
Ilya Gorbunov
cd9b36b4c3
Introduce OpenEndRange and make primitive ranges implement it
...
#KT-52932
2022-06-28 00:08:03 +00:00
Ilya Gorbunov
1cfc6a8fca
Move sources of ranges to common stdlib from builtins
...
But still cherry-pick them when serializing builtins because they are
used in builtins signatures.
Merge-request: KT-MR-6488
Merged-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
2022-06-23 03:49:30 +00:00
Ilya Gorbunov
4a6466e290
Include kotlin.internal package from core/builtins/src into stdlib-common compilation
...
It is required because internal annotations from there can be used in
other compiled kotlin-stdlib-common sources.
2022-05-17 14:38:44 +00:00
Zalim Bashorov
90c867ae1d
[JS] Define Node.js version in one place and use a single version everywhere
...
Consequently, it fixes the inability to run some JS related tests on Apple devices with ARM.
2022-04-23 17:58:42 +02:00
Alexander Likhachev
feccc5785f
[Build] Revert workaround introduced in 2f39a656
2022-04-20 14:27:18 +00:00
Alexander Likhachev
2f39a65679
[Build] Add workarounds for https://github.com/gradle/gradle/issues/17936
...
#KT-44611 In Progress
2022-04-19 00:33:36 +03:00
Jerome Prinet
6aec88446a
Fix JavaExec.main deprecation
2022-04-14 14:21:31 +03:00
Ilya Gorbunov
000165b12b
Fix incorrect conversion of Long to String in base 36 in JS KT-48924
2022-03-30 06:13:51 +00:00
Iaroslav Postovalov
534cf0c6c8
stdlib: Simplify JS charArrayOf implementation ( #4354 )
...
#KT-16974 Fixed
2021-12-24 17:20:06 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Mikhail Glukhikh
ffbd574a08
Use -opt-in instead of -Xopt-in in comments and scripts
2021-09-08 23:43:55 +03:00
Alexander Udalov
91c39ed01c
Build: remove obsolete compiler arguments
...
These compiler arguments enable features which are enabled by default in
the current Kotlin anyway.
The only exception is in :compiler:cli which uses an old language
version.
2021-07-27 13:35:38 +02:00
Ilya Gorbunov
b59f668a50
Change the way kotlin.js source map paths are postprocessed
...
The idea is that we do no longer use `sourceMapBaseDirs` parameter
of `compileKotlin2Js` task to remove prefix from source paths,
but instead preserve the full paths relative to the output directory.
This allows us to avoid duplicate file names and to identify
source files more reliably.
Then, after sources have been embedded in the source map, we remove
several relative prefixes from source paths.
2021-04-26 13:13:21 +03:00
Ilya Gorbunov
8b85bae020
Stabilize Char-to-Int conversions KT-45874
2021-04-03 10:30:50 +03:00
Ilya Gorbunov
94240f7b21
Stabilize unsigned types KT-45653
...
Deprecate specialized unsigned iterators for removal.
Fix compiler tests:
- drop unsignedLiteralsOn1_2 because apiVersion 1.2 is no longer supported
- drop experimental unsigned literals diagnostic test
2021-03-31 19:05:04 +03:00
Alexander Likhachev
74ab5c21a8
[Build] Fix configuration cache issues (part 4)
...
Make :kotlin-stdlib-js:prepareComparableSource, :kotlin-stdlib-js:prepareBuiltinsSources, :kotlin-stdlib-js:compileJs, :kotlin-stdlib-js:compileJs, :prepare:build.version:writeBuildNumber, :kotlin-compiler:distKotlinc compatible with configuration cache
Relates to #KT-44611
2021-03-11 14:12:34 +03:00
Alexander Likhachev
0e4e90dc13
[Build] Bump gradle-node-plugin version to 3.0.1 to support conf cache
...
:kotlin-test:kotlin-test-js:kotlin-test-js-it will still have old version as integration test run logic cannot be fully refactored to the new version (approximately till 3.1)
Relates to #KT-44611
2021-03-11 14:12:34 +03:00
Abduqodiri Qurbonzoda
662787b12b
Straighten Char-to-code and Char-to-digit conversions out #KT-23451
2020-12-31 12:07:41 +03:00
Vyacheslav Gerasimov
235813736e
Build: Set file access rights explicitly in kotlin-stdlib-js jar
...
Workaround for #KTI-401. Since gradle 6.6 ant.replaceregexp call sets
incorrect access rights `-rw-------` instead of `-rw-r--r--`
2020-12-04 01:47:18 +03:00
Ilya Gorbunov
76c5d036a8
Do not pack source of invisible runtime helpers to stdlib-js
...
Use reference sources of built-in Enum and Comparable instead.
KT-42318
2020-10-05 16:07:05 +03:00
Alexander Udalov
da6d904c6e
Suppress code warnings in kotlin-stdlib
2020-08-20 20:30:34 +02:00
Ilya Gorbunov
bace1b8055
Increase stdlib-js mocha test timeouts to 10s
...
Some tests often do not fit into the default timeout when running tests
in parallel on CI.
2020-07-21 05:43:38 +03:00
Svyatoslav Kuzmich
bbfc1a10ad
[JS] Fix stack trace capturing from secondary constructors KT-37563
2020-06-22 12:03:59 +03:00
Ilya Gorbunov
05f9154bdd
Use fixed versions of node.js and npm packages in tests
2020-06-15 17:18:10 +03:00
Vyacheslav Gerasimov
da6c2ddb2f
Build: Migrate stdlib & kotlin-test to maven-publish publication
2020-06-14 20:31:27 +03:00
Vyacheslav Gerasimov
8737168d41
Build: Use maven-publish in configurePublishing helper
2020-06-14 20:31:26 +03:00
Vyacheslav Gerasimov
c2589c7d6d
Build: Rename javadocJar for groovy to configureJavadocJar
...
So it doesn't interfere with javadocJar task accessor
2020-06-14 20:31:25 +03:00
Anton Bannykh
a18bfad53a
Add stdlib API test + remove some extra IR stdlib API's
2020-06-03 17:14:29 +03:00
Svyatoslav Kuzmich
af13ae1ef2
[JS] Add klib to kostlin-stdlib-js.jar distribution
...
Fixes KTI-177 and KT-35857
2020-06-03 14:16:46 +03:00
Ilya Goncharov
a476d1dbc4
String prototypes polyfills on Object.defineProperty
2020-06-02 14:56:29 +03:00
Ilya Goncharov
9431fc4693
Polyfill for Arrays should be declared with Object.defineProperty
...
To not be enumerable
2020-06-02 14:56:29 +03:00
Roman Elizarov
46b426ef77
KT-31741: stdlib: DeepRecursiveFunction ( #3398 )
...
Introduces experimental coroutines-based framework to execute deeply recursive functions that utilities the heap and thus avoid StackOverflowError.
2020-05-27 10:06:00 +03:00
Svyatoslav Kuzmich
3d5003d476
[JS_IR] Use new plugin to build Kotlin/JS stdlib with IR compiler
...
- Switch to building stdlib with bootstrap compiler since IR is stable
enough
- Build stdlib with coreLibs by default
- Include JS IR stdlib to kotlin distribution
2020-05-08 10:37:48 +03:00
Anton Bannykh
442331acc9
IR JS: support findAssociatedObject feature (KT-37418 fixed)
2020-04-27 17:23:19 +03:00
Ilya Gorbunov
d88d2cb058
Test new Double/Float constants
...
Split test expectations based on actual support of enforced Float range
KT-29182, KT-13887
2020-04-02 04:04:04 +03:00
Ilya Gorbunov
2bb36899da
Introduce 'fail' method to throw AssertionError with cause
...
#KT-37804
2020-03-31 13:37:03 +03:00
Abduqodiri Qurbonzoda
e632d58936
Nullable Array.contentEquals/contentHashCode/contentToString #KT-34161
2020-03-12 18:01:23 +03:00
Zalim Bashorov
43171f67a8
[stdlib-js-ir] Cleanup exceptions
2020-03-11 12:54:41 +03:00
Alexander Udalov
787e4503e5
Migrate -Xuse-experimental -> -Xopt-in in project sources
2020-03-10 12:07:15 +01:00
Vyacheslav Gerasimov
52b88bf753
Build: Fix various libraryJarWithIr task inputs
2020-03-04 01:14:56 +03:00
Vyacheslav Gerasimov
75a3808230
Build: Use sourceMapBaseDirs in :kotlin-stdlib-js:compileKotlin2Js
...
instead of freeCompiler args to avoid snapshotting absolute paths
and fix caching
2020-03-03 14:33:57 +03:00
Mikhail Zarechenskiy
155b716e7e
Revert "Disable NewInference for stdlib tests"
...
This reverts commit cdf5323f8c .
2020-02-17 10:29:46 +03:00
Mikhail Zarechenskiy
cdf5323f8c
Disable NewInference for stdlib tests
...
There is one failing test namely `ValByMapExtensionsTest.doTest`, which
is quite questionable because its checks the use of out projection and
Exact annotation (see KT-18789)
2020-02-13 11:15:56 +03:00
Ilya Gorbunov
7792613f88
Finishing touch: drop experimental coroutines sourcesets from stdlib
...
#KT-36083
2020-01-29 09:12:42 +03:00