Skip to content

Use errstr() instead of toSource() in nouveau js wrapper#5976

Merged
nickva merged 1 commit intomainfrom
errstr-in-nouveau-instead-of-tosource
Apr 22, 2026
Merged

Use errstr() instead of toSource() in nouveau js wrapper#5976
nickva merged 1 commit intomainfrom
errstr-in-nouveau-instead-of-tosource

Conversation

@nickva
Copy link
Copy Markdown
Contributor

@nickva nickva commented Apr 22, 2026

toSource() is a Spidermonkey special, use our errstr() warpper function which checks if toSource() is available, and if not, it runs toString() instead

This one line fix (minus the test) was originally submitted by a new contributor in #5951. When we requested a few changes they closed the pr without comments 🤷

@nickva nickva requested a review from rnewson April 22, 2026 05:23
`toSource()` is a Spidermonkey special, use our `errstr()` warpper function which checks
if `toSource()` is available, and if not,  it runs `toString()` instead
@big-r81 big-r81 force-pushed the errstr-in-nouveau-instead-of-tosource branch from 2abd60f to 357edeb Compare April 22, 2026 10:26
@nickva nickva merged commit ac042fb into main Apr 22, 2026
59 checks passed
@nickva nickva deleted the errstr-in-nouveau-instead-of-tosource branch April 22, 2026 13:57
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