-
Notifications
You must be signed in to change notification settings - Fork 456
Migrate ValueTypeMap & MemoryDescriptor #2232
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
Conversation
|
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. |
inputfiles/patches/values.kdl
Outdated
| @@ -0,0 +1,9 @@ | |||
| dictionary ValueTypeMap legacyNamespace="WebAssembly" exposed="Window Worker Worklet" { | |||
There was a problem hiding this comment.
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.
src/build/helpers.ts
Outdated
| "undefined", | ||
| "void", | ||
| "bigint", | ||
| "never", |
There was a problem hiding this comment.
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.
inputfiles/patches/values.kdl
Outdated
| @@ -0,0 +1,9 @@ | |||
| dictionary ValueTypeMap legacyNamespace="WebAssembly" exposed="Window Worker Worklet" { | |||
| member anyfunc required=#true type="Function" | |||
There was a problem hiding this comment.
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.
|
Hello @saschanaz |
src/build/patches.ts
Outdated
| return { | ||
| name, | ||
| members: { member }, | ||
| ...optionalMember("extends", "string", child.properties?.extends), |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, fixed it
inputfiles/patches/webassembly.kdl
Outdated
| enum TableKind legacyNamespace=WebAssembly | ||
| enum AddressType legacyNamespace=WebAssembly | ||
|
|
||
| dictionary ValueTypeMap legacyNamespace=WebAssembly exposed="Window Worker Worklet" { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
LGTM |
|
There was an issue merging, maybe try again saschanaz. Details |
|
LGTM |
|
Merging because @saschanaz is a code-owner of all the changes - thanks! |
#2053
I added support for
legacyNamespace,overrideType, andextendsfor the dictionory parser.