Truly independent web browser
LibJS: Expose the objects that structured cloning reads to Rust
Shannon Bootha45ffd5c4348
diff --git a/Libraries/LibJS/Rust/src/api.rs b/Libraries/LibJS/Rust/src/api.rsindex 4ee16238188..d91d12b1311 100644--- a/Libraries/LibJS/Rust/src/api.rs+++ b/Libraries/LibJS/Rust/src/api.rs@@ -41,9 +41,12 @@ pub use crate::runtime::agent::agent_can_suspend;pub use crate::runtime::array::Array;pub use crate::runtime::array_buffer::{ArrayBuffer, DataBlock, DataBlockStorage, ExternalPrimitiveStorage, Order as ArrayBufferOrder,- Shared as ArrayBufferShared, clone_array_buffer, detach_array_buffer,+ Shared as ArrayBufferShared, clone_array_buffer, create_byte_data_block, detach_array_buffer,};pub use crate::runtime::big_int::BigInt;+pub use crate::runtime::big_int_object::BigIntObject;+pub use crate::runtime::boolean_object::BooleanObject;+pub use crate::runtime::byte_length::ByteLength;pub use crate::runtime::canonical_index::CanonicalIndex;pub use crate::runtime::completion::{Must, Throw, ThrowCompletionOr};pub use crate::runtime::data_view::{@@ -60,17 +63,22 @@ pub use crate::runtime::iterator::{IteratorHint, IteratorRecord, create_iterator_result_object, get_iterator, get_iterator_from_method_impl,iterator_complete, iterator_next, iterator_step_value, iterator_to_list, iterator_value,};+pub use crate::runtime::map::Map;pub use crate::runtime::module::Module;pub use crate::runtime::module_environment::ModuleEnvironment;pub use crate::runtime::module_request::ModuleRequest;pub use crate::runtime::native_function::{NativeFunction, RawNativeFunction};-pub use crate::runtime::object::{IntegrityLevel, Object};+pub use crate::runtime::number_object::NumberObject;+pub use crate::runtime::object::{IntegrityLevel, Object, PropertyKind};pub use crate::runtime::primitive_string::PrimitiveString;pub use crate::runtime::promise::{Promise, PromiseState, RejectionOperation};pub use crate::runtime::promise_capability::{PromiseCapability, new_promise_capability};pub use crate::runtime::property_attributes::{Attribute, PropertyAttributes};pub use crate::runtime::property_key::PropertyKey;pub use crate::runtime::realm::Realm;+pub use crate::runtime::regexp_object::{RegExpObject, regexp_create};+pub use crate::runtime::set::Set;+pub use crate::runtime::string_object::StringObject;pub use crate::runtime::typed_array::{Kind as TypedArrayKind, TypedArrayBase, TypedArrayWithBufferWitness, create_typed_array_on_buffer,is_typed_array_out_of_bounds, make_typed_array_with_buffer_witness_record, typed_array_byte_length,