browserify / browserify/vm-browserify

createCachedData is not implemented

Open
#25 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
205
Forks
41
PR merge metrics
No merged PRs in 30d

Description

```js
const vm = require("vm");

let script = new vm.Script("console.log('hello world')", { produceCachedData: true });

console.log(script.createCachedData());
```

This fails because it's not implemented yet. We can run bytecode inside browser if this is implemented.

This is implemented here on node source, https://github.com/nodejs/node/blob/0e715dea84d67a24624516c730aa71ed04971727/src/node_contextify.cc#L787

Is it possible to implement this on vm-browserify?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.