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 AotRuntime(
options: EnvironmentOptions,
program: CompilerArtifacts,
resolver: RuntimeResolverDelegate = {},
delegate: EnvironmentDelegate = {}
): AotRuntimeContext {
let env = new EnvironmentImpl(options, delegate);
return {
env,
resolver: new DefaultRuntimeResolver(resolver),
program: RuntimeProgramImpl.hydrate(program),
};
}