Andreu Botella

Results 99 comments of Andreu Botella

For the general case with arbitrary realms, not just those with the security properties of `ShadowRealm`, there are more requirements and questions: - Comb through the JS runtime code to...

Recently denoland/deno#13861 has radically changed how ops work internally, such that op synchronization is no longer needed. Also, denoland/deno#13993, although still experimental, should guarantee that async ops resolve the right...

> Hi! We have some interest in this feature. Can we help with it somehow? Hi. Sorry for the late reply. I'm currently working on this on my spare time,...

If you get around to start writing tests at some point, please comment so in this issue. I will as well, if I get to it first.

> An amend: `init_cbs()` indirectly uses `v8__Isolate__GetCurrentContext()` to obtain the context, which I understand isn't necessarily the context belonging to the Realm parameter. Am I wrong? > > [realm_async_test_and_init_cbs.patch.1.txt](https://github.com/denoland/deno/files/9015198/realm_async_test_and_init_cbs.patch.1.txt) I...

I've started working on module support for realms, which will be a follow-up to this PR, and I noticed that it's quite inconvenient to have the return value of `JsRealm::state`...

Benchmarks (cpu: AMD Ryzen 7 3700X 8-Core Processor): main: ``` file:///home/abotella/Projects/forks/denoland/deno/cli/bench/deno_common.js benchmark time (avg) (min … max) p75 p99 p995 ------------------------------------------------------- ----------------------------- date_now 37.16 ns/iter (35.67 ns … 98.89 ns)...

In fact, the `transfer` field is typed as `sequence` in WebIDL, and the actual type checking happens as part of the structured clone algorithm, not on the WebIDL layer. But...

As I was trying this out, I realized that since `JsRuntime::handle_scope` and `JsRealm::handle_scope` create a brand new scope rather than adding to the existing scope stack, `JsRealm::execute_script` can't be used...