Skip to content

Commit

Permalink
Sync WEH (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov authored Jan 6, 2025
1 parent 80f7176 commit 2cb9857
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class ChasmSqliteEmbedderConfig internal constructor(
/**
* Implementation of a host object that provides access from the WebAssembly to external host resources.
*/
public var host: EmbedderHost = EmbedderHost.Builder().apply {
this.rootLogger = rootLogger
this.directories()
.setAllowRootAccess(true)
.setCurrentWorkingDirectory(".")
}.build()
public var host: EmbedderHost = EmbedderHost {
logger = rootLogger
fileSystem {
unrestricted = true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public class ChicorySqliteEmbedderConfig internal constructor(
/**
* Implementation of a host object that provides access from the WebAssembly to external host resources.
*/
public var host: EmbedderHost = EmbedderHost.Builder().apply {
this.rootLogger = rootLogger
this.directories()
.setAllowRootAccess(true)
.setCurrentWorkingDirectory(".")
}.build()
public var host: EmbedderHost = EmbedderHost {
logger = rootLogger
fileSystem {
unrestricted = true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ public class GraalvmSqliteEmbedderConfig internal constructor(
/**
* Implementation of a host object that provides access from the WebAssembly to external host resources.
*/
public var host: EmbedderHost = EmbedderHost.Builder().apply {
this.rootLogger = embedderRootLogger
this.directories().apply {
setAllowRootAccess(true)
setCurrentWorkingDirectory(".")
public var host: EmbedderHost = EmbedderHost {
logger = embedderRootLogger
fileSystem {
unrestricted = true
}
}.build()
}
}

0 comments on commit 2cb9857

Please sign in to comment.