Skip to content

Refactor property name handling in emitWebIdl function to support hyphenated names #2049

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

Merged
merged 2 commits into from
Jun 22, 2025

Conversation

Bashamega
Copy link
Contributor

Solves the failing build of #2047

Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

Copy link
Contributor

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -862,6 +862,7 @@ export function emitWebIdl(
printer.printLine("/** @deprecated */");
printer.printLine("declare const name: void;");
} else {
const propertyName = p.name.includes("-") ? `"${p.name}"` : p.name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this before optionalModifier so that it's closer to where it's used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done @saschanaz

@saschanaz
Copy link
Contributor

LGTM

Copy link
Contributor

There was an issue merging, maybe try again saschanaz. Details

@jakebailey jakebailey merged commit d9660b3 into microsoft:main Jun 22, 2025
6 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.

3 participants