servo/servo

Provide actual messages in JS errors

Open

#40,756 opened on Nov 20, 2025

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

Repository metrics

Stars
 (36,724 stars)
PR merge metrics
 (Avg merge 2d 14h) (556 merged PRs in 30d)

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