servo/servo

Provide actual messages in JS errors

Open

#40756 opened on Nov 20, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (36,724 stars) (3,630 forks)batch import
good first issue

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