Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
/captures
.externalNativeBuild
.cxx
.konan
local.properties
4 changes: 2 additions & 2 deletions build-logic/project/lint/src/main/kotlin/spotless.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ spotless {

trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
leadingTabsToSpaces(2)
}
format("toml") {
target(rootDir.filter { it.name.endsWith(".toml") })

trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
leadingTabsToSpaces(2)
}
format("markdown") {
target(rootDir.filter { it.name.endsWith(".md") || it.name.endsWith(".markdown") })
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ androidx-room26 = "2.6.1"
androidx-test = "1.6.2"
androidx-test-core = "1.6.1"
androidx-test-rules = "1.6.1"
atomicfu = "0.26.1"
atomicfu = "0.27.0"
arrow = "2.0.0"
assertk = "0.28.1"
chasm = "0.9.4"
chasm = "0.9.42"
chicory = "1.0.0"
desugar_jdk_libs = "2.1.4"
detekt = "1.23.7"
Expand All @@ -30,7 +30,7 @@ kotlinx-datetime = "0.6.1"
kotlinx-io ="0.6.0"
kermit = "2.0.5"
ksp = "2.1.0-1.0.29"
mockk = "1.13.14"
mockk = "1.13.16"
spotless = "7.0.0"
sqlite-wasm-binary = "0.3"
wasi-emscripten-host = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ buildscript {
dependencies {
classpath("androidx.room:androidx.room.gradle.plugin:2.7.0-alpha12")
classpath("com.android.tools.build:gradle:8.7.3")
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.0.BETA4")
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.0")
classpath("com.google.devtools.ksp:symbol-processing-gradle-plugin:2.1.0-1.0.29")
classpath("com.saveourtool.diktat:diktat-gradle-plugin:2.0.0")
classpath("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.7")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.26.1")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.27.0")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import at.released.weh.host.EmbedderHost
import at.released.weh.wasm.core.WasmModules.ENV_MODULE_NAME
import at.released.weh.wasm.core.memory.WASM_MEMORY_DEFAULT_MAX_PAGES
import at.released.weh.wasm.core.memory.WASM_MEMORY_PAGE_SIZE
import com.github.michaelbull.result.getOrThrow
import io.github.charlietap.chasm.ast.type.Limits
import io.github.charlietap.chasm.ast.type.SharedStatus.Unshared
import io.github.charlietap.chasm.embedding.error.ChasmError.DecodeError
Expand Down Expand Up @@ -129,9 +128,7 @@ internal class ChasmInstanceBuilder(
callbackHostFunctions: List<ChasmImport>,
): SqliteCallbackFunctionIndexes {
val tableAddress: Table = instance.instance.tableAddresses[0]
val table: TableInstance = store.store.table(tableAddress).getOrThrow {
ChasmException("Can not get table $tableAddress")
}
val table: TableInstance = store.store.table(tableAddress)
val oldSize = table.elements.size
table.grow(
callbackHostFunctions.size,
Expand Down
Loading