Skip to content

달빛약속 / Runtime

Class: Runtime

Constructors

new Runtime()

new Runtime(codeTexts, config): Runtime

Parameters

codeTexts

Record<string, string>

config

Partial<RuntimeConfig>

Returns

Runtime

Defined in

core/runtime/index.ts:20

Properties

entryPoint

entryPoint: string

Defined in

core/runtime/index.ts:14


flags

flags: Partial<Partial<Record<FUTURE_FUNCTION_INVOKE_SYNTAX, boolean>>> = {}

Defined in

core/runtime/index.ts:16


runFFI()

runFFI: (runtime, code, args) => ValueType | Promise<ValueType>

Parameters

runtime

string

code

string

args

FunctionInvokingParams

Returns

ValueType | Promise<ValueType>

Defined in

core/runtime/index.ts:15


stderr()

stderr: (message) => void

Parameters

message

string

Returns

void

Defined in

core/runtime/index.ts:13


stdout()

stdout: (message) => void

Parameters

message

string

Returns

void

Defined in

core/runtime/index.ts:12

Methods

getCodeFile()

getCodeFile(fileName): CodeFile

Parameters

fileName

string = ...

Returns

CodeFile

Defined in

core/runtime/index.ts:62


run()

run(fileName): Promise<ExecuteResult<Block>>

Parameters

fileName

string = ...

Returns

Promise<ExecuteResult<Block>>

Defined in

core/runtime/index.ts:39