Embedding V8: how to disable builtins?

Viewed 46

Im trying to embed V8 for a project that requires untrusted javascript code execution, and moreover it requires the code to be completely deterministic and pure, that means no Math.random() or side effects like console.log thats performs a print.

I want to be able to control all the available builtins.

Is this possible, if so how? How can I get a list of all exposed builtins?

Im using Rust with the v8 wrapper crate.

0 Answers
Related