Skip to content

Commit

Permalink
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3949?no…
Browse files Browse the repository at this point in the history
…tification_referrer_id=NT_kwDOCercKbUxMzczODI0NjM2NjoxNjYzODY3Mjk#issuecomment-2536050908
  • Loading branch information
chenliuyang1989 committed Dec 22, 2024
1 parent 84b9bdb commit 9fd6555
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 51 deletions.
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
@file:OptIn(ExperimentalWasmDsl::class)

import org.gradle.internal.os.OperatingSystem
import de.undercouch.gradle.tasks.download.Download
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsExec
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport
import java.nio.file.Files
import java.util.Locale
import java.util.*

plugins {
alias(libs.plugins.kotlinMultiplatform)
Expand Down Expand Up @@ -38,6 +34,8 @@ kotlin {
commonMain{
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.2-SNAPSHOT")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")

}
}
wasmWasiMain {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[versions]
kotlin = "2.0.20"
#kotlin = "2.1.0"
#kotlin = "2.1.0-Beta2"
undercouch = "5.6.0"

Expand Down
32 changes: 0 additions & 32 deletions src/wasmWasiMain/kotlin/BugReproduce.kt

This file was deleted.

19 changes: 16 additions & 3 deletions src/wasmWasiMain/kotlin/BugReproduce2.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.datetime.Clock


Expand All @@ -6,10 +9,20 @@ import kotlinx.datetime.Clock
@WasmExport
fun myTest() {

val now = Clock.System.now()
println("the time is"+now)
println("the time is")

}

val job = GlobalScope.launch() {
while (true){
println("运行中22")
delay(6000)
println("正在运行中,当前时间:")
}

}


}



Expand Down
11 changes: 0 additions & 11 deletions src/wasmWasiMain/kotlin/Person.kt

This file was deleted.

0 comments on commit 9fd6555

Please sign in to comment.