You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With cargo test -p swc_ecma_parser --test test262 and remove #[cfg(feature = "verify")]: Correctly fails, revealing cases where invalid parses erroneously succeed.
For instance, the test file 08bafe059b17ac92.js contains code that incorrectly passes validation: the parser successfully processes syntax that should trigger failures according to the test specifications
Describe the bug
The test harness exhibits contradictory results across configurations:
cargo test -p swc_ecma_parser --test test262 --features verify
: falsely passes despite underlying issues.cargo test -p swc_ecma_parser --test test262
and remove#[cfg(feature = "verify")]
: Correctly fails, revealing cases where invalid parses erroneously succeed.For instance, the test file
08bafe059b17ac92.js
contains code that incorrectly passes validation: the parser successfully processes syntax that should trigger failures according to the test specificationsInput code
Config
Link to the code that reproduces this issue
https://play.swc.rs/?version=1.11.1&code=H4sIAAAAAAAAA4vWrk5UsFUwqI21BgDyJZZNCwAAAA%3D%3D&config=H4sIAAAAAAAAA1WPSw6DMAxE95wi8potm96hh7CCQUH5KQ5SI8Tdm4SElp1n5tkjH4MQsLGElzjymIXHwBRunR1ONuInO0DSIMugfISxpxuXaEHNVK3zSiBiWCnWLZ4aDto5po43zyirlvRfKJ3xgZifYEHRrpqedUOrBOPmvYbtkZh8UbCbGX5QL7sPg%2BJ337zOnl9mc%2BJOFQEAAA%3D%3D
SWC Info output
No response
Expected behavior
parse failed
Actual behavior
parse success
Version
latest commit
Additional context
No response
The text was updated successfully, but these errors were encountered: