Skip to content

RunningScriptInNewContextOptions

[<Interface>]
type RunningScriptInNewContextOptions =
    abstract member contextCodeGeneration: ContextCodeGeneration option with get, set
    abstract member contextName: string option with get, set
    abstract member contextOrigin: string option with get, set
    static member Create (?contextName: string, ?contextOrigin: string, ?contextCodeGeneration: ContextCodeGeneration, ?filename: string, ?lineOffset: float, ?columnOffset: float, ?displayErrors: bool, ?timeout: float, ?breakOnSigint: bool, ?microtaskMode: string) : RunningScriptInNewContextOptions
AssemblyXantham.Fable.Node
ImplementsBase, RunningScriptOptions
Attributes[<Interface>]

Declared inside

Base
ContextCodeGeneration

Properties

abstract member contextCodeGeneration: ContextCodeGeneration option with get, set
abstract member contextName: string option with get, set

Human-readable name of the newly created context.

abstract member contextOrigin: string option with get, set

Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL, but with only the scheme, host, and port (if necessary), like the value of the url.origin property of a URL object. Most notably, this string should omit the trailing slash, as that denotes a path.

Methods

static member Create (?contextName: string, ?contextOrigin: string, ?contextCodeGeneration: ContextCodeGeneration, ?filename: string, ?lineOffset: float, ?columnOffset: float, ?displayErrors: bool, ?timeout: float, ?breakOnSigint: bool, ?microtaskMode: string) : RunningScriptInNewContextOptions