Skip to content

Add safe variants of throw_internal_error, throw_range_error, throw_type_error - #797

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
Gae24:safe-throw-error
Aug 18, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
Gae24:safe-throw-error

Conversation

@Gae24

@Gae24 Gae24 commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Testing: It compiles
Servo PR: servo/servo#47340

…row_type_error`

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
@TimvdLippe
TimvdLippe merged commit 5eb6825 into servo:main Aug 18, 2026
46 checks passed
moamenhesham0 pushed a commit to moamenhesham0/servo that referenced this pull request Aug 19, 2026
…r` (servo#47340)

By switching to `throw_type_error_safe`, the unsafe blocks that wrapped
dictionary types creation are no longer required. For the handful of
cases where a callback is part of a dictionary, the unsafe blocks are
now narrowed to the single function.
Companion PR of servo/mozjs#797

Testing: It compiles

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
@Gae24
Gae24 deleted the safe-throw-error branch September 1, 2026 15:58
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…r` (servo#47340)

By switching to `throw_type_error_safe`, the unsafe blocks that wrapped
dictionary types creation are no longer required. For the handful of
cases where a callback is part of a dictionary, the unsafe blocks are
now narrowed to the single function.
Companion PR of servo/mozjs#797

Testing: It compiles

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants