xiaoas
xiaoas4w ago

How to use set_internal_field of rusty v8?

After checking the process demo it seems that set_internal_field_count was called, but no actual value was set. So I'm wondering 1. is it possible to use this feature in rusty_v8? 2. In the cpp example SetNativeDataProperty & SetHandler(NamedPropertyHandlerConfiguration(MapGet, MapSet)) were used. Is it possible to do the same in rusty_v8?
GitHub
rusty_v8/examples/process.rs at main · denoland/rusty_v8
Rust bindings for the V8 JavaScript engine. Contribute to denoland/rusty_v8 development by creating an account on GitHub.
GitHub
v8/samples/process.cc at main · v8/v8
The official mirror of the V8 Git repository. Contribute to v8/v8 development by creating an account on GitHub.
1 Reply
bartlomieju
bartlomieju4w ago
GitHub
rusty_v8/tests/test_api.rs at main · denoland/rusty_v8
Rust bindings for the V8 JavaScript engine. Contribute to denoland/rusty_v8 development by creating an account on GitHub.