We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
I'm not aware of any way to do this in the browser, no. There is no cross platform API for bytecode caches.
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: