ruby/internal
Samuel Williams 64f508ade8
Support cause: in Thread#raise and Fiber#raise. (#13967)
* Add support for `cause:` argument to `Fiber#raise` and `Thread#raise`.

The implementation behaviour is consistent with `Kernel#raise` and
`Exception#initialize` methods, allowing the `cause:` argument to be
passed to `Fiber#raise` and `Thread#raise`. This change ensures that
the `cause:` argument is handled correctly, providing a more consistent
and expected behavior when raising exceptions in fibers and threads.

[Feature #21360]

* Shared specs for Fiber/Thread/Kernel raise.

---------

Co-authored-by: Samuel Williams <samuel.williams@shopify.com>
2025-07-24 14:45:43 +12:00
..
2025-07-23 14:33:55 -07:00
2025-07-10 17:18:20 +02:00
2025-06-23 20:03:48 +09:00
2025-07-14 11:11:47 -04:00
2025-06-23 10:04:58 +01:00
2025-05-11 23:32:50 +09:00
2025-06-02 09:52:25 -04:00