Skip to content

examples/kotlin-multiplatform fails when running on JS with the built-in executor #336

@fzhinkin

Description

@fzhinkin

Run ./gradlew :examples:kotlin-multiplatform:jsBuiltInExecutorBenchmark, get:

> Task :examples:kotlin-multiplatform:jsBuiltInExecutorBenchmark FAILED
Running 'main' benchmarks for 'jsBuiltInExecutor'
IllegalStateException: JsBuiltInExecutor does not support async functions
    at JsBuiltInExecutor.protoOf.re (/Users/filipp.zhinkin/Development/kotlinx-benchmark-master/examples/kotlin-multiplatform/build/compileSync/js/jsBuiltInExecutorBenchmark/jsBuiltInExecutorBenchmarkProductionExecutable/kotlin/src/kotlin/util/Preconditions.kt:143:56)
    at JsBuiltInExecutor.protoOf.te (/Users/filipp.zhinkin/Development/kotlinx-benchmark-master/runtime/commonMain/src/kotlinx/benchmark/SuiteExecutor.kt:42:9)
    at main (/Users/filipp.zhinkin/Development/kotlinx-benchmark-master/examples/kotlin-multiplatform/build/benchmarks/jsBuiltInExecutor/sources/kotlinx/benchmark/generated/BenchmarkSuite.kt:22:12)
    at mainWrapper (/Users/filipp.zhinkin/Development/kotlinx-benchmark-master/build/js/packages/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark/kotlin/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark.js:72:5)
    at /Users/filipp.zhinkin/Development/kotlinx-benchmark-master/build/js/packages/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark/kotlin/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark.js:580:3
    at /Users/filipp.zhinkin/Development/kotlinx-benchmark-master/build/js/packages/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark/kotlin/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark.js:5:5
    at Object.<anonymous> (/Users/filipp.zhinkin/Development/kotlinx-benchmark-master/build/js/packages/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark/kotlin/kotlinx-benchmark-examples-kotlin-multiplatform-jsBuiltInExecutorBenchmark.js:18:2)
    at Module._compile (node:internal/modules/cjs/loader:1455:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
    at Module.load (node:internal/modules/cjs/loader:1265:32)

The issue also reproduces with 7b0e8f4; I didn't go further back in commits history thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions