| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 297d217 commit 0461729
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -323,6 +323,14 @@ const vm = require('vm'); | |||
| 323 | 323 | global | |
| 324 | 324 | ); | |
| 325 | 325 | ||
| 326 | + // Test compileFunction produceCachedData option | ||
| 327 | + const result = vm.compileFunction('console.log("Hello, World!")', [], { | ||
| 328 | + produceCachedData: true, | ||
| 329 | + }); | ||
| 330 | + | ||
| 331 | + assert.ok(result.cachedDataProduced); | ||
| 332 | + assert.ok(result.cachedData.length > 0); | ||
| 333 | + | ||
| 326 | 334 | // Resetting value | |
| 327 | 335 | Error.stackTraceLimit = oldLimit; | |
| 328 | 336 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments