Fix build

This commit is contained in:
Adria Navarro 2024-01-15 12:04:35 +01:00
parent d7bbae3caf
commit 73fee7dec7
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,6 @@ export type ContextMap = {
isScim?: boolean
automationId?: string
isMigrating?: boolean
jsIsolate: Isolate
jsContext: Context
jsIsolate?: Isolate
jsContext?: Context
}

View File

@ -33,7 +33,7 @@ export function init() {
}
}
const global = bbCtx.jsContext.global
const global = bbCtx.jsContext!.global
for (const [key, value] of Object.entries(ctx)) {
if (typeof value === "function") {
// Can't copy functions into the isolate, so we just ignore them
@ -43,7 +43,7 @@ export function init() {
}
const script = bbCtx.jsIsolate.compileScriptSync(js)
return script.runSync(bbCtx.jsContext, {
return script.runSync(bbCtx.jsContext!, {
timeout: env.JS_PER_EXECUTION_TIME_LIMIT_MS,
})
})