mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,vm: clarify usage of cachedData in vm.compileFunction()
Fixes: https://github.com/nodejs/node/issues/48175 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: https://github.com/nodejs/node/pull/48193 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -1005,7 +1005,8 @@ changes:
|
||||
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
|
||||
`TypedArray`, or `DataView` with V8's code cache data for the supplied
|
||||
source.
|
||||
source. This must be produced by a prior call to [`vm.compileFunction()`][]
|
||||
with the same `code` and `params`.
|
||||
* `produceCachedData` {boolean} Specifies whether to produce new cache data.
|
||||
**Default:** `false`.
|
||||
* `parsingContext` {Object} The [contextified][] object in which the said
|
||||
@@ -1593,6 +1594,7 @@ are not controllable through the timeout either.
|
||||
[`script.runInContext()`]: #scriptrunincontextcontextifiedobject-options
|
||||
[`script.runInThisContext()`]: #scriptruninthiscontextoptions
|
||||
[`url.origin`]: url.md#urlorigin
|
||||
[`vm.compileFunction()`]: #vmcompilefunctioncode-params-options
|
||||
[`vm.createContext()`]: #vmcreatecontextcontextobject-options
|
||||
[`vm.runInContext()`]: #vmrunincontextcode-contextifiedobject-options
|
||||
[`vm.runInThisContext()`]: #vmruninthiscontextcode-options
|
||||
|
||||
Reference in New Issue
Block a user