sagudev

Results 349 comments of sagudev

I think we need `JS_InitReadPrincipalsCallback` to enable cloning JSPrincipals.

No, we fail on https://searchfox.org/mozilla-central/rev/b219c6d2063b7e152737e7450906e935d4bfbbff/js/src/vm/StructuredClone.cpp#1804 because we don't have write callback.

We need both. I already have **very dirty** prototype: https://github.com/sagudev/servo/commit/19616c2dd63489d5cbbb8d97d537df64b1e15435.

When doing try runs I always hit No space left on device in unit tests. EDIT: I think this is caused by manually building SM as I use my mozjs...

try run: https://github.com/sagudev/servo/actions/runs/9733850907/job/26861902736

I might work on this given that it would be useful for webgpu: https://gpuweb.github.io/gpuweb/#gpucompilationinfo

part of https://github.com/servo/servo/issues/30862

Because there is more such patterns in the code, for example: https://github.com/servo/servo/blob/e2e7476404e407caa3e6625f4cf4bd6aed9ded6b/components/script/dom/eventtarget.rs#L524

> Hi! I can work on this if nobody else is working on it yet Sure

There are still more that can be replaced like https://github.com/servo/servo/blob/141a594e236201acb44ca7cc42e2e653f4d55e7b/components/script/dom/window.rs#L735 and there is also some stuff in codegen: https://github.com/servo/servo/blob/141a594e236201acb44ca7cc42e2e653f4d55e7b/components/script/dom/bindings/codegen/CodegenRust.py#L2470