Skip to main content
CompileFunctionOptions - vm - Node documentation
interface CompileFunctionOptions
extends BaseOptions

Usage in Deno

import { type CompileFunctionOptions } from "node:vm";

Properties

optional
cachedData: Buffer | undefined

Provides an optional data with V8's code cache data for the supplied source.

optional
produceCachedData: boolean | undefined

Specifies whether to produce new cache data.

optional
parsingContext: Context | undefined

The sandbox/context in which the said function should be compiled in.

optional
contextExtensions: Object[] | undefined

An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling