Skip to content

Commit

Permalink
Merge branch 'fix/isolated-modules-env' into 'develop'
Browse files Browse the repository at this point in the history
Fix/isolated-modules-env

See merge request papers/airgap/airgap-wallet!710
  • Loading branch information
godenzim committed Sep 29, 2023
2 parents 6f08016 + b787777 commit 0cc41f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JavaScriptEngineEnvironment(
private val context: Context,
private val fileExplorer: FileExplorer,
) : JSEnvironment {
private val sandbox: Deferred<JavaScriptSandbox> = JavaScriptSandbox.createConnectedInstanceAsync(context).asDeferred()
private val sandbox: Deferred<JavaScriptSandbox> by lazy { JavaScriptSandbox.createConnectedInstanceAsync(context).asDeferred() }

private val isolatedMutex: Mutex = Mutex()
private val isolates: MutableMap<String, JavaScriptIsolateRegistry> = mutableMapOf()
Expand Down

0 comments on commit 0cc41f7

Please sign in to comment.