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

Keep the parameter 'tags' as an array in the body of the function #337

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

julienw
Copy link
Contributor

@julienw julienw commented Nov 29, 2023

Previously, we were transforming it into a set. This was giving problems in a later condition, so that no message/debugInfo were defined, and the user would get an alert with the message "undefined".

Now the set stays local to the code block where it's used, so that the parameter variable "tags" is an array for the whole function, for more consistency with the "names" variable.

Previously, we were transforming it into a set. This was giving problems
in a later condition, so that no message/debugInfo were defined, and the
user would get an alert with the message "undefined".

Now the set stays local to the code block where it's used, so that the
parameter variable "tags" is an array for the whole function, for more
consistency with the "names" variable.
@julienw julienw requested a review from camillobruni November 29, 2023 14:10
@@ -46,7 +46,6 @@ Suites.enable = function (names, tags) {
validNames: this.map((each) => each.name),
};
} else if (tags?.length) {
Copy link
Contributor Author

@julienw julienw Nov 29, 2023

Choose a reason for hiding this comment

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

.length doesn't exist in a set.

Copy link
Contributor

Choose a reason for hiding this comment

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

ups, thanks for fixing.

@julienw julienw merged commit 2414364 into WebKit:main Nov 29, 2023
4 checks passed
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.

2 participants