GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc,vm: clarify usage of cachedData in vm.compileFunction() · nodejs/node@802db92

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • vm.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/vm.md‎

Copy file name to clipboardExpand all lines: doc/api/vm.md
+3-1Lines changed: 3 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ changes:
10051005
is displayed in stack traces produced by this script. **Default:** `0`.
10061006
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
10071007
`TypedArray`, or `DataView` with V8's code cache data for the supplied
1008-
source.
1008+
source. This must be produced by a prior call to [`vm.compileFunction()`][]
1009+
with the same `code` and `params`.
10091010
* `produceCachedData` {boolean} Specifies whether to produce new cache data.
10101011
**Default:** `false`.
10111012
* `parsingContext` {Object} The [contextified][] object in which the said
@@ -1593,6 +1594,7 @@ are not controllable through the timeout either.
15931594
[`script.runInContext()`]: #scriptrunincontextcontextifiedobject-options
15941595
[`script.runInThisContext()`]: #scriptruninthiscontextoptions
15951596
[`url.origin`]: url.md#urlorigin
1597+
[`vm.compileFunction()`]: #vmcompilefunctioncode-params-options
15961598
[`vm.createContext()`]: #vmcreatecontextcontextobject-options
15971599
[`vm.runInContext()`]: #vmrunincontextcode-contextifiedobject-options
15981600
[`vm.runInThisContext()`]: #vmruninthiscontextcode-options

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.