Fix build
This commit is contained in:
parent
d7bbae3caf
commit
73fee7dec7
|
@ -10,6 +10,6 @@ export type ContextMap = {
|
||||||
isScim?: boolean
|
isScim?: boolean
|
||||||
automationId?: string
|
automationId?: string
|
||||||
isMigrating?: boolean
|
isMigrating?: boolean
|
||||||
jsIsolate: Isolate
|
jsIsolate?: Isolate
|
||||||
jsContext: Context
|
jsContext?: Context
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)) {
|
for (const [key, value] of Object.entries(ctx)) {
|
||||||
if (typeof value === "function") {
|
if (typeof value === "function") {
|
||||||
// Can't copy functions into the isolate, so we just ignore them
|
// 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)
|
const script = bbCtx.jsIsolate.compileScriptSync(js)
|
||||||
return script.runSync(bbCtx.jsContext, {
|
return script.runSync(bbCtx.jsContext!, {
|
||||||
timeout: env.JS_PER_EXECUTION_TIME_LIMIT_MS,
|
timeout: env.JS_PER_EXECUTION_TIME_LIMIT_MS,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue