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

[Feature Request] Add a option for disable the require method when using EventLoop #64

Open
zyxkad opened this issue Sep 28, 2023 · 1 comment

Comments

@zyxkad
Copy link

zyxkad commented Sep 28, 2023

I want to use eventloop, but I don't want the method require because I don't want the script can access my filesystem.

I can make a source loader that will always return an error, but the built-in modules such as node:console could still be required.
It's not a such big issue, but I already implement my own console object, so I don't want the script use the other.

zyxkad added a commit to zyxkad/goja_nodejs that referenced this issue Sep 28, 2023
@zyxkad
Copy link
Author

zyxkad commented Nov 1, 2023

Maybe we should just create a plain eventloop that only contains setTimeout such global functions:

#65 (comment)

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