Clarify behavior when AsyncTestComplete/Failure are both present#5007
Clarify behavior when AsyncTestComplete/Failure are both present#5007
Conversation
|
Another example: Samsung/escargot#1553 |
ptomato
left a comment
There was a problem hiding this comment.
Not sure about this? I always thought that print should only be invoked exactly once, and invoking it twice means a buggy test.
@jugglinmike As someone who may have helped write the original spec, do you remember what was intended here?
|
A good quarter of ~5k async tests seem to exhibit this behavior - had an LLM look at a sample of 100 tests. I think conclusion is clear:
|
|
test262-harness behavior is to fail the test if |
Common sense and this test dictate that failure should be preferred. This is apparently not obvious to LLM agents, see this issue / commit.