| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 88dfd50 commit 6d881b8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,6 +112,18 @@ Creating a new `vm.Script` object compiles `code` but does not run it. The | |||
| 112 | 112 | compiled `vm.Script` can be run later multiple times. The `code` is not bound to | |
| 113 | 113 | any global object; rather, it is bound before each run, just for that run. | |
| 114 | 114 | ||
| 115 | + ### `script.cachedDataRejected` | ||
| 116 | + | ||
| 117 | + <!-- YAML | ||
| 118 | + added: v5.7.0 | ||
| 119 | + --> | ||
| 120 | + | ||
| 121 | + * {boolean|undefined} | ||
| 122 | + | ||
| 123 | + When `cachedData` is supplied to create the `vm.Script`, this value will be set | ||
| 124 | + to either `true` or `false` depending on acceptance of the data by V8. | ||
| 125 | + Otherwise the value is `undefined`. | ||
| 126 | + | ||
| 115 | 127 | ### `script.createCachedData()` | |
| 116 | 128 | ||
| 117 | 129 | <!-- YAML | |
@@ -1146,16 +1158,7 @@ changes: | |||
| 1146 | 1158 | work after that. **Default:** `false`. | |
| 1147 | 1159 | * `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or | |
| 1148 | 1160 | `TypedArray`, or `DataView` with V8's code cache data for the supplied | |
| 1149 | - source. When supplied, the `cachedDataRejected` value will be set to | ||
| 1150 | - either `true` or `false` depending on acceptance of the data by V8. | ||
| 1151 | - * `produceCachedData` {boolean} When `true` and no `cachedData` is present, V8 | ||
| 1152 | - will attempt to produce code cache data for `code`. Upon success, a | ||
| 1153 | - `Buffer` with V8's code cache data will be produced and stored in the | ||
| 1154 | - `cachedData` property of the returned `vm.Script` instance. | ||
| 1155 | - The `cachedDataProduced` value will be set to either `true` or `false` | ||
| 1156 | - depending on whether code cache data is produced successfully. | ||
| 1157 | - This option is **deprecated** in favor of `script.createCachedData()`. | ||
| 1158 | - **Default:** `false`. | ||
| 1161 | + source. | ||
| 1159 | 1162 | * `importModuleDynamically` {Function} Called during evaluation of this module | |
| 1160 | 1163 | when `import()` is called. If this option is not specified, calls to | |
| 1161 | 1164 | `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][]. | |
@@ -1252,16 +1255,7 @@ changes: | |||
| 1252 | 1255 | module will throw a `WebAssembly.CompileError`. **Default:** `true`. | |
| 1253 | 1256 | * `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or | |
| 1254 | 1257 | `TypedArray`, or `DataView` with V8's code cache data for the supplied | |
| 1255 | - source. When supplied, the `cachedDataRejected` value will be set to | ||
| 1256 | - either `true` or `false` depending on acceptance of the data by V8. | ||
| 1257 | - * `produceCachedData` {boolean} When `true` and no `cachedData` is present, V8 | ||
| 1258 | - will attempt to produce code cache data for `code`. Upon success, a | ||
| 1259 | - `Buffer` with V8's code cache data will be produced and stored in the | ||
| 1260 | - `cachedData` property of the returned `vm.Script` instance. | ||
| 1261 | - The `cachedDataProduced` value will be set to either `true` or `false` | ||
| 1262 | - depending on whether code cache data is produced successfully. | ||
| 1263 | - This option is **deprecated** in favor of `script.createCachedData()`. | ||
| 1264 | - **Default:** `false`. | ||
| 1258 | + source. | ||
| 1265 | 1259 | * `importModuleDynamically` {Function} Called during evaluation of this module | |
| 1266 | 1260 | when `import()` is called. If this option is not specified, calls to | |
| 1267 | 1261 | `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][]. | |
@@ -1339,16 +1333,7 @@ changes: | |||
| 1339 | 1333 | work after that. **Default:** `false`. | |
| 1340 | 1334 | * `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or | |
| 1341 | 1335 | `TypedArray`, or `DataView` with V8's code cache data for the supplied | |
| 1342 | - source. When supplied, the `cachedDataRejected` value will be set to | ||
| 1343 | - either `true` or `false` depending on acceptance of the data by V8. | ||
| 1344 | - * `produceCachedData` {boolean} When `true` and no `cachedData` is present, V8 | ||
| 1345 | - will attempt to produce code cache data for `code`. Upon success, a | ||
| 1346 | - `Buffer` with V8's code cache data will be produced and stored in the | ||
| 1347 | - `cachedData` property of the returned `vm.Script` instance. | ||
| 1348 | - The `cachedDataProduced` value will be set to either `true` or `false` | ||
| 1349 | - depending on whether code cache data is produced successfully. | ||
| 1350 | - This option is **deprecated** in favor of `script.createCachedData()`. | ||
| 1351 | - **Default:** `false`. | ||
| 1336 | + source. | ||
| 1352 | 1337 | * `importModuleDynamically` {Function} Called during evaluation of this module | |
| 1353 | 1338 | when `import()` is called. If this option is not specified, calls to | |
| 1354 | 1339 | `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][]. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments