-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
More use of JS method syntax. NFC #19906
Conversation
503a137
to
6b7a3d2
Compare
Just to check, is the method syntax or arrow syntax preferred? It looks like there were some functions in |
I think the answer is that we should probably prefer whichever produces the smallest code size. In almost all cases that is method syntax so we should, in general prefer that. I think the only exception is single expression functions that return a value. In this case we can use the short-form of the arrow syntax that avoids the |
Got it. Is there a measurement for code size in JS files like |
Yes, the measurement of code size here comes from the metadce and other codesize tests in the |
This was broken in emscripten-core#19906, but we didn't have any testing for this particular combination of flags.
This was broken in #19906, but we didn't have any testing for this particular combination of flags.
No description provided.