Skip to content

Conversation

kg
Copy link
Member

@kg kg commented Nov 5, 2021

Because this test wasn't passing a step value to JavaScript, it only ever stepped the iterator for one iteration and then continued. This meant that the test rarely actually exercised the bug it was trying to detect.

By fixing it so that it runs for multiple iterations as intended, it reliably reproduces variations on the bug (it came back in one of my development branches) at the exact same point every run after a reasonably short number of steps.

This PR also improves the error output and does additional checks.

@ghost
Copy link

ghost commented Nov 5, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Because this test wasn't passing a step value to JavaScript, it only ever stepped the iterator for one iteration and then continued. This meant that the test rarely actually exercised the bug it was trying to detect.

By fixing it so that it runs for multiple iterations as intended, it reliably reproduces variations on the bug (it came back in one of my development branches) at the exact same point every run after a reasonably short number of steps.

This PR also improves the error output and does additional checks.

Author: kg
Assignees: -
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: -

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants