Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Minor improvement to correctness of TreeWalker.

Fun fact, this is the first time, that I've run into, where we have to default null and undefined to different values.

Also, tweaked the WPT test runner. WPT test results use | as a field delimiter. But a WPT test (and, I assume a message) can contain a |. So we had at least a few tests that were being reported as failed, only because the result line was weird / unexpected. No great robust way to parse this, but I changed it to look explicitly for |Pass or |Fail and use those positions as anchor points.

Minor improvement to correctness of TreeWalker.

Fun fact, this is the first time, that I've run into, where we have to default
null and undefined to different values.

Also, tweaked the WPT test runner. WPT test results use | as a field delimiter.
But a WPT test (and, I assume a message) can contain a |. So we had at least
a few tests that were being reported as failed, only because the result line
was weird / unexpected. No great robust way to parse this, but I changed it
to look explicitly for |Pass or |Fail and use those positions as anchor points.
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
@karlseguin karlseguin merged commit e26d4af into main Aug 22, 2025
10 checks passed
@karlseguin karlseguin deleted the wpt_runner_fix_and_nodeiterator_tweak branch August 22, 2025 07:29
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants