This project demonstrates the differences in compilation output between J2CL and Kotlin/JS compilers through various Kotlin code examples.
Each module in this project contains:
- Source Kotlin files
output_closure
directory: Contains J2CL compilation outputoutput_kjs
directory: Contains Kotlin/JS compilation output (where applicable)
Note: Some modules may not include output_kjs
output due to J2CL-specific Kotlin expressions that cannot be directly
expressed in Kotlin/JS style.
This is a fork of the Kotlin fixtures from the J2CL project, originally located at: https://github.com/google/j2cl/tree/master/transpiler/javatests/com/google/j2cl/readable/kotlin
Related Projects:
- J2CL Project
- Kotlin
- J2CL and Kotlin/JS interoperability comparison - A detailed technical comparison document that analyzes the differences between J2CL and Kotlin/JS approaches to JavaScript interoperability.
This is a living repository that is synchronized with:
- Original J2CL fixtures
- Changes in the Kotlin/JS compilation model
The primary goal is to showcase and track the differences in compiled output between these two compilers.