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

[wasm] JSImport, JSExport and related API types for JavaScript interop #71500

Merged
merged 37 commits into from
Jul 7, 2022

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jun 30, 2022

  • adds approved API for [JSImport], [JSExport] and related types with empty implementations
    • the implementation is in followup PR 66304
  • initial draft of xmldoc
  • I omitted JSType.None from the approved API, which is my copy&paste mistake from time when it was still enum.

Fixes #70133

- xmldoc
@pavelsavara pavelsavara added this to the 7.0.0 milestone Jun 30, 2022
@pavelsavara pavelsavara self-assigned this Jun 30, 2022
@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost
Copy link

ghost commented Jun 30, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • adds approved API for [JSImport], [JSExport] and related types with empty implementations
    • the implementation is in followup PR 66304
  • initial draft of xmldoc

Fixes #70133

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: 7.0.0

@pavelsavara pavelsavara marked this pull request as ready for review July 1, 2022 04:35
@pavelsavara pavelsavara requested a review from marek-safar as a code owner July 1, 2022 04:35
pavelsavara and others added 8 commits July 1, 2022 10:12
…stem.Runtime.InteropServices.JavaScript.csproj

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSHost.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSMarshalAsAttribute.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSMarshalerType.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Marek Fišera <mara@neptuo.com>
pavelsavara and others added 25 commits July 5, 2022 14:12
…stem/Runtime/InteropServices/JavaScript/JSExportAttribute.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSFunctionBinding.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSFunctionBinding.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSFunctionBinding.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSFunctionBinding.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSHost.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSHost.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSHost.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSHost.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSImportAttribute.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSImportAttribute.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSImportAttribute.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSMarshalAsAttribute.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSMarshalerArgument.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSMarshalerArgument.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSObject.References.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSObject.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSType.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSType.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSType.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
…stem/Runtime/InteropServices/JavaScript/JSType.cs

Co-authored-by: Katelyn Gadd <kg@luminance.org>
@pavelsavara
Copy link
Member Author

Timeout on WasmTestOnBrowser-subtlecrypto-System.Security.Cryptography.Tests/console is unrelated.

@pavelsavara pavelsavara merged commit 1206b82 into dotnet:main Jul 7, 2022
@pavelsavara pavelsavara deleted the wasm_jsimport_jsexport_api branch July 14, 2022 20:46
@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: JavaScript interop with [JSImport] and [JSExport] attributes and Roslyn
3 participants