script: Impl cloning of JSPrincipals (#32706)

* Impl cloning of JSPrincipals

* bincode as workspace dependency

* Update mozjs and cc
This commit is contained in:
Samson 2024-07-06 12:25:38 +02:00 committed by GitHub
parent 5a9dc98f07
commit 59d0f1fe1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 77 additions and 15 deletions

View file

@ -44,11 +44,12 @@ use crate::script_runtime::JSContext as SafeJSContext;
// NOTE: Current values found at https://dxr.mozilla.org/mozilla-central/
// rev/ff04d410e74b69acfab17ef7e73e7397602d5a68/js/public/StructuredClone.h#323
#[repr(u32)]
enum StructuredCloneTags {
pub(super) enum StructuredCloneTags {
/// To support additional types, add new tags with values incremented from the last one before Max.
Min = 0xFFFF8000,
DomBlob = 0xFFFF8001,
MessagePort = 0xFFFF8002,
Principals = 0xFFFF8003,
Max = 0xFFFFFFFF,
}