BridgeJS: Correctly emit @JS methods in extensions#694
BridgeJS: Correctly emit @JS methods in extensions#694wfltaylor wants to merge 5 commits intoswiftwasm:mainfrom
Conversation
kateinoigakukun
left a comment
There was a problem hiding this comment.
Nice catch! Can you add more test cases to cover class, struct and enum in snapshot tests and runtimr tests?
I’ve added some runtime tests and some more snapshot tests. |
|
@wfltaylor this is great 🙌🏻 would you resolving CI issues? Also, if that's not a trouble to ask, could we get some addition on support for extension mentioned in The best place to document extension support is in the existing per-type articles under Worth noting that extensions must target @JS-annotated types from the same module, and that the extension block itself does not need @js - only the individual members do |
|
@wfltaylor hey, hope you don't mind - I pushed a commit fixing the CI issues and adding the docs/diagnostics improvements I mentioned in the review 🙌🏻 Here's what's in there:
CI is green on all jobs 🟢 |
Thank you! Apologies about the testing issues, I’ve had a few problems running the runtime tests locally (I think I’ve figured it out now). Changes all look good to me. |
Currently, code generation for @js extension methods is broken: the @_cdecl wrapper misses the self parameter.