Skip to content

Conversation

@kg
Copy link
Member

@kg kg commented Jan 29, 2022

To get good behavior in typescript, your enums need to be 'const enum', otherwise it generates some really gross JS with runtime overhead. I didn't know this (thanks to @pavelsavara for the tip)

@kg kg requested a review from marek-safar as a code owner January 29, 2022 03:12
@ghost ghost assigned kg Jan 29, 2022
@ghost
Copy link

ghost commented Jan 29, 2022

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

Issue Details

To get good behavior in typescript, your enums need to be 'const enum', otherwise it generates some really gross JS with runtime overhead. I didn't know this (thanks to @pavelsavara for the tip)

Author: kg
Assignees: -
Labels:

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

Milestone: -

@kg kg requested a review from pavelsavara January 29, 2022 03:12
@kg kg merged commit cede333 into dotnet:main Jan 29, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 1, 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.

2 participants