summaryrefslogtreecommitdiff
path: root/doc/api/vm.md
diff options
context:
space:
mode:
authorBenjamin Chen <benjaminlchen@gmail.com>2018-09-18 01:28:41 -0400
committerRefael Ackermann <refack@gmail.com>2018-11-02 10:18:58 -0400
commit65fe999ed77c958468ca55c24e9242e193b55f95 (patch)
tree8977248f6c807913f3e2fd6b941d9a2f710eefea /doc/api/vm.md
parent74ba48294b115364b92bbd5c87c8025cd109e303 (diff)
downloadandroid-node-v8-65fe999ed77c958468ca55c24e9242e193b55f95.tar.gz
android-node-v8-65fe999ed77c958468ca55c24e9242e193b55f95.tar.bz2
android-node-v8-65fe999ed77c958468ca55c24e9242e193b55f95.zip
vm: allow `cachedData` to also be TypedArray|DataView
PR-URL: https://github.com/nodejs/node/pull/22921 Refs: https://github.com/nodejs/node/issues/1826 Refs: https://github.com/nodejs/node/pull/22921#issuecomment-422350213 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r--doc/api/vm.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index c4b7e3f9b3..ae4daec716 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -434,10 +434,10 @@ changes:
in stack traces produced by this script.
* `columnOffset` {number} Specifies the column number offset that is displayed
in stack traces produced by this script.
- * `cachedData` {Buffer} Provides an optional `Buffer` with V8's code cache
- data for the supplied source. When supplied, the `cachedDataRejected` value
- will be set to either `true` or `false` depending on acceptance of the data
- by V8.
+ * `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
+ `TypedArray`, or `DataView` with V8's code cache data for the supplied
+ source. When supplied, the `cachedDataRejected` value will be set to
+ either `true` or `false` depending on acceptance of the data by V8.
* `produceCachedData` {boolean} When `true` and no `cachedData` is present, V8
will attempt to produce code cache data for `code`. Upon success, a
`Buffer` with V8's code cache data will be produced and stored in the
@@ -669,8 +669,9 @@ added: v10.10.0
in stack traces produced by this script. **Default:** `0`.
* `columnOffset` {number} Specifies the column number offset that is displayed
in stack traces produced by this script. **Default:** `0`.
- * `cachedData` {Buffer} Provides an optional `Buffer` with V8's code cache
- data for the supplied source.
+ * `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
+ `TypedArray`, or `DataView` with V8's code cache data for the supplied
+ source.
* `produceCachedData` {boolean} Specifies whether to produce new cache data.
**Default:** `false`.
* `parsingContext` {Object} The [contextified][] sandbox in which the said