Skip to content

Conversation

@Bashamega
Copy link
Contributor

@Bashamega Bashamega commented Nov 4, 2025

#2053

I added support for legacyNamespace, overrideType, and extends for the dictionory parser.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

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.

@@ -0,0 +1,9 @@
dictionary ValueTypeMap legacyNamespace="WebAssembly" exposed="Window Worker Worklet" {
Copy link
Contributor

Choose a reason for hiding this comment

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

The existing webassembly.kdl seems like the best place to put this.

"undefined",
"void",
"bigint",
"never",
Copy link
Contributor

Choose a reason for hiding this comment

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

never is not an IDL type, please use overrideType for that. bigint is, though.

@@ -0,0 +1,9 @@
dictionary ValueTypeMap legacyNamespace="WebAssembly" exposed="Window Worker Worklet" {
member anyfunc required=#true type="Function"
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to quote types nor legacyNamespace.

@Bashamega
Copy link
Contributor Author

Hello @saschanaz
I have updated it

@Bashamega Bashamega changed the title Migrate ValueTypeMap Migrate ValueTypeMap & MemoryDescriptor Nov 4, 2025
return {
name,
members: { member },
...optionalMember("extends", "string", child.properties?.extends),
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can be skipped for now, as we are not using "extends" here. You might have intended to do "exposed" but...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, fixed it

enum TableKind legacyNamespace=WebAssembly
enum AddressType legacyNamespace=WebAssembly

dictionary ValueTypeMap legacyNamespace=WebAssembly exposed="Window Worker Worklet" {
Copy link
Contributor

Choose a reason for hiding this comment

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

While we are at it, let's remove exposed here. Dictionaries do not need it and I missed it in #963.

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
Copy link
Contributor

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

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

@saschanaz
Copy link
Contributor

LGTM

@github-actions github-actions bot merged commit 2bdd496 into microsoft:main Nov 5, 2025
8 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

Merging because @saschanaz is a code-owner of all the changes - thanks!

@Bashamega Bashamega deleted the ValueTypeMap branch November 6, 2025 03:49
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