Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 11, 2024

.

@sbc100 sbc100 requested review from kripken and RReverser June 11, 2024 17:12
@sbc100 sbc100 force-pushed the optional_chaining branch from 2a25676 to b9b8ced Compare June 11, 2024 17:15
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like ??= was added in exactly the Chrome/Firefox/Safari minimum versions we support by default, convenient...

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment

(and ?. was even earlier apparently)

Interesting it hurts gzip size in some cases but that seems like just noise.

@RReverser
Copy link
Collaborator

RReverser commented Jun 11, 2024

Looks like ??= was added in exactly the Chrome/Firefox/Safari minimum versions we support by default, convenient...

It's because we bumped versions we support specifically to support that operator during the first mass-refactor PR 😅

@kripken
Copy link
Member

kripken commented Jun 11, 2024

Oh cool 😆 no coincidence then...

@sbc100 sbc100 merged commit dd0c250 into emscripten-core:main Jun 11, 2024
@sbc100 sbc100 deleted the optional_chaining branch June 11, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants