Taym Haddadi
f3f4cc5500
Script implement TransformStream and TransformStreamDefaultController ( #36739 )
...
Part of https://github.com/servo/servo/issues/34676
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com >
2025-05-08 08:45:57 +00:00
Taym Haddadi
4d975e947b
Start adding support for transforms in readable and writable streams ( #36470 )
...
Start adding support for transforms in readable and writable streams.
Part of https://github.com/servo/servo/issues/34676
2025-04-28 11:02:55 +00:00
Arya Nair
94d12de7fd
feat: add CanGc argument to Error::to_jsval ( #36014 )
...
* feat: add CanGc argument to Error::to_jsval
Signed-off-by: Arya Nair <aryaajitnair@gmail.com >
* feat: pass CanGc to gen_type_error
Signed-off-by: Arya Nair <aryaajitnair@gmail.com >
* fix: linting issues
Signed-off-by: Arya Nair <aryaajitnair@gmail.com >
---------
Signed-off-by: Arya Nair <aryaajitnair@gmail.com >
2025-03-17 22:29:41 +00:00
Josh Matthews
d35da38a2f
Cleanups for future script crate split ( #35987 )
...
* script: Avoid direct impl blocks on generated dicts and unions.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* script: Remove references to codegen-specific import module.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* Fix tidy.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2025-03-16 13:46:14 +00:00
Taym Haddadi
a5cf04c479
script: implement ReadableByteStreamController ( #35410 )
...
* script: implement ReadableByteStreamController
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* implement can_copy_data_block_bytes and copy_data_block_bytes
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove BufferSource::Default
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* implement StartAlgorithmFulfillmentHandler, StartAlgorithmRejectionHandler, PullAlgorithmFulfillmentHandler, PullAlgorithmRejectionHandler for ReadableByteStreamController
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* implement perform_pull_into
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix build
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix build
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove RefCell from PullIntoDescriptor and QueueEntry
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove commented code
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* add perform_cancel_steps, perform_release_steps and perform_pull_steps
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix crown
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* unskip readable-byte-streams
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix CRASH
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix more CRASHS
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix more crashes
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix bad-buffers-and-views.any.js test
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Update test expectations
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix BorrowMutError crashes
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix view_byte_length test
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix non-transferable-buffers test
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Pass contexts as much as possible by reference
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Make respond_internal Fallible
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix crwon
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix process pull into descriptors using queue logic and resulting double-borrow
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* Fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* FIx more crashes
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix timeout tests
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix all tests
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove all error! logs
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove #[allow(unsafe_code)]
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix lint
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix tidy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix test expectation
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com >
2025-03-10 19:43:04 +00:00
Yerkebulan Tulibergenov
38b71087bd
refactor: add CanGc as argument to Promise::reject_error ( #35646 )
...
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com >
2025-02-25 10:12:58 +00:00
Josh Matthews
381e168877
Move more bindings types to script_bindings ( #35620 )
...
* Move weak references implementation to script_bindings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* Move maplike/setlike definitions to script_bindings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* Move base error types to script_bindings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* Formatting.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2025-02-23 14:25:46 +00:00
Gae24
adb831eefe
script: add CanGc argument to Promise::new_resolved and Promise::new_rejected ( #35605 )
...
* add CanGc to new_resolved and use it where possible
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com >
* add CanGc to new_rejected
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com >
---------
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com >
2025-02-23 04:45:47 +00:00
Kingsley Yung
b4f48c561b
script: Take away Fallible from new_resolved and new_rejected ( #35473 )
...
* script: Take away Fallible from new_resolved and new_rejected
Both Promise::new_resolved and new_rejected only return `Ok`. We don't
need them to be fallible. Simply return `Rc<Promise>`, instead of
`Fallible<Rc<Promise>>`. Also, clean up relevant code.
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev >
* script: pull_algorithm becomes infallible
The method pull_algorithm only returns `Some(Ok(_))`, which means it is
infallible. Clean up the returned type.
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev >
* script: generic_initialize becomes infallible
The method generic_initialize only returns `Ok(())`, which means it is
infallible. Clean up the returned type.
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev >
---------
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev >
2025-02-15 21:29:34 +00:00
Stephen Muss
cb588bab6a
script: make Error::to_jsval safe ( #35411 )
...
Signed-off-by: Stephen Muss <stephenmuss@gmail.com >
2025-02-10 23:47:31 +00:00
Josh Matthews
c94ac5bccb
Move various reflector types and traits to script_bindings ( #35279 )
...
* script: Move Reflector to script_bindings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* script: Extract global() helper from DomObject into new trait. Move DomObject and related traits to script_bindings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2025-02-04 06:58:08 +00:00
Josh Matthews
875e387004
script: Feature-gate all crown support. ( #35055 )
...
* script: Feature-gate all crown support.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
* script: Use cfg(crown) instead of a cargo feature.
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2025-01-18 21:36:15 +00:00
Taym Haddadi
3225d196fa
script: Implement set_up, ReleaseLock, Closed, Cancel, acquire_byob_reader for ReadableStreamBYOBReader ( #34958 )
...
* introduce ReadableStreamGenericReader to share functionality between ReadableStreamDefaultReader and ReadableStreamBYOBReader
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* implement set_up, ReleaseLock, Closed, Cancel for ReadableStreamBYOBReader
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Implement acquire_byob_reader
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove #[allow(crown::unrooted_must_root)] from ReadRequest and ReadIntoRequest
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
2025-01-15 22:34:00 +00:00