mirror of
https://github.com/servo/servo
synced 2026-05-12 01:46:28 +02:00
This is companion to https://github.com/servo/mozjs/pull/703 which makes mozjs to use CStr(ing) in the API (where we would silently do conversion in mozjs). This way we can avoid rust string -> c string allocations. In the followup PR we should switch Error::Type and Error::Range to also use CStrings internally, as they are converted to CString for throwing JS exceptions (other get thrown as DomException object, which uses rust string internally - although this gets converted to JSString somewhere). Testing: It should be just refactor without any side effects so there should be no changes to WPT results. Try run: https://github.com/sagudev/servo/actions/runs/21328878448 Part of #42126 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
376 KiB
376 KiB