Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function JitRuntime(
options: EnvironmentOptions,
resolver: RuntimeResolverDelegate = {},
delegate: EnvironmentDelegate = {}
): JitRuntimeContext {
let env = new EnvironmentImpl(options, delegate);
let constants = new Constants();
let heap = new HeapImpl();
let program = new RuntimeProgramImpl(constants, heap);
return {
env,
resolver: new DefaultRuntimeResolver(resolver),
program,
};
}