Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 563f9fe

Browse filesBrowse files
RaisinTenMoLow
authored andcommitted
doc,vm: clarify usage of cachedData in vm.compileFunction()
Fixes: #48175 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: #48193 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 67b2c2a commit 563f9fe
Copy full SHA for 563f9fe

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
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
@@ -1002,7 +1002,8 @@ changes:
10021002
is displayed in stack traces produced by this script. **Default:** `0`.
10031003
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
10041004
`TypedArray`, or `DataView` with V8's code cache data for the supplied
1005-
source.
1005+
source. This must be produced by a prior call to [`vm.compileFunction()`][]
1006+
with the same `code` and `params`.
10061007
* `produceCachedData` {boolean} Specifies whether to produce new cache data.
10071008
**Default:** `false`.
10081009
* `parsingContext` {Object} The [contextified][] object in which the said
@@ -1590,6 +1591,7 @@ are not controllable through the timeout either.
15901591
[`script.runInContext()`]: #scriptrunincontextcontextifiedobject-options
15911592
[`script.runInThisContext()`]: #scriptruninthiscontextoptions
15921593
[`url.origin`]: url.md#urlorigin
1594+
[`vm.compileFunction()`]: #vmcompilefunctioncode-params-options
15931595
[`vm.createContext()`]: #vmcreatecontextcontextobject-options
15941596
[`vm.runInContext()`]: #vmrunincontextcode-contextifiedobject-options
15951597
[`vm.runInThisContext()`]: #vmruninthiscontextcode-options

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.