Skip to content

Commit

Permalink
Fix/isolated-modules-env
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamol authored and godenzim committed Sep 29, 2023
1 parent 6f08016 commit b787777
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 b787777

Please sign in to comment.