UNPKG

@sudoo/marked

Version:

JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous

24 lines (23 loc) 864 B
/** * @author WMXPY * @namespace Marked * @description Executer */ import { MarkedDebugBreakPoint } from "../debug/break-point/break-point"; import { MarkedResult } from "../declare/evaluate"; import { IExecuter, ISandbox } from "../declare/sandbox"; import { ScriptLocation } from "../declare/script-location"; import { IExposed } from "../declare/variable"; import { Scope } from "../variable/scope"; export declare class Executer implements IExecuter { static from(sandbox: ISandbox): Executer; private readonly _parent; private readonly _rootScope; private _executing; private constructor(); get parent(): ISandbox; get scope(): Scope; get exposed(): IExposed; isExecuting(): boolean; evaluate(script: string, breakPoints?: Iterable<MarkedDebugBreakPoint>, scriptLocation?: ScriptLocation): Promise<MarkedResult>; }