servo/servo

Provide actual messages in JS errors

Open

#40,756 opened on Nov 20, 2025

 (4 comments) (0 reactions) (0 assignees)Rust (3,630 forks)batch import
good first issue

Repository metrics

Stars
 (36,724 stars)
PR merge metrics
 (PR metrics pending)

Description

Now that each error variant accepts Option<String> (#39053), we should start to write actually error messages instead of passing None.

OFF-TOPIC: Should we accept Cow rather than string? Or maybe even create JSString directly? (probably not).

Contributor guide