Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JS alternate names #873

Merged
merged 1 commit into from
Nov 25, 2023
Merged

Fix JS alternate names #873

merged 1 commit into from
Nov 25, 2023

Conversation

Elchi3
Copy link
Member

@Elchi3 Elchi3 commented Nov 23, 2023

Fix #854

  • Remove Atomics.wake and old Intl.Locale members from customJS
  • Properly ignore String.prototype.trimLeft/Right
  • Remove ignore case for WaiterRecord and WaiterListRecords, seems unneeded.

@Elchi3
Copy link
Member Author

Elchi3 commented Nov 23, 2023

@queengooborg I didn't see fd987b7... I think it doesn't quite work. Would you mind switching to PRs? Otherwise, I'm not really informed about changes that are made to the collector. PRs are actually a nice way to see what is going on.

Comment on lines -33 to -37
if (
featureName === "Atomics" &&
["WaiterRecord", "WaiterListRecords"].includes(attrName)
) {
// The spec defines WaiterRecord/WaiterListRecords as if they were members of Atomics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these lines being removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I logged all attrName that are passed into shouldIgnoreAttr and WaiterRecord/WaiterListRecords are never in there in the first place so I think the check is not needed. Maybe I'm misunderstanding this check?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible that the spec has since fixed this issue, so we no longer need this ignore in place. I'm not seeing these present in the generated tests now, so I'm going to assume that's the case.

@queengooborg queengooborg merged commit d180df5 into main Nov 25, 2023
5 checks passed
@queengooborg queengooborg deleted the ignore-aliases branch November 25, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dealing with alias/alternate names
2 participants