Skip to content
New issue

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

这也许是一个bug #230

Open
2516455367 opened this issue Mar 21, 2024 · 0 comments
Open

这也许是一个bug #230

2516455367 opened this issue Mar 21, 2024 · 0 comments

Comments

@2516455367
Copy link

`const bytenode = require('bytenode');

let helloWorldBytecode = bytenode.compileCode(var fs = require("fs"); function xxx() { return 4; } exports = { generate: xxx };, { compileAsModule: true });

console.info(bytenode.runBytecode(helloWorldBytecode));`

错误:
evalmachine.:1
"​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​"
^

ReferenceError: require is not defined
at evalmachine.:1:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant