Add Test262 for ecma_transforms_testing
#3533
magic-akari
started this conversation in
General
Replies: 1 comment
-
I agree that it's too long. I think it does not worth adding. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to add test262 test cases to swc.
But I ran into some issues that made me consider whether it was worth it.
What am I trying to do:
The issues I encountered:
test/language
cases without any transformation.I pulled the test262 repo and ran the test cases directly.
I tested them on node 16 and 5% of the test cases failed. This is a predictable result since V8 did not implement all the features according to the spec.
If this test262 is being considered for use , then you need to know if it was originally passed or not.
Some test cases will fail in the parsing phase. This means that we may get the Error directly instead of the transformed files. It is a issue about how to match the errors as well.
I ran the test case on my MacBook (13-inch, M1, 2020).
There were no transformation, only one round, but it took 25 minutes to finish the test cases, which is too long for me.
The translation time needs to be counted for as well.
What do you think about it?
Is it worth introducing test262?
Beta Was this translation helpful? Give feedback.
All reactions