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

Update terser to v5.18.2 and verify optional chaining support #19805

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jul 7, 2023

Fixes: #15827

@sbc100 sbc100 force-pushed the update_terser_again branch from 7e004c8 to 08e2361 Compare July 7, 2023 15:35
@@ -275,4 +275,4 @@ WebAssembly.instantiate(Module["wasm"], imports).then(output => {
dynCall_iiii = asm["p"];
initRuntime(asm);
ready();
});
}));
Copy link
Member

Choose a reason for hiding this comment

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

Why are these needed?

Copy link
Collaborator Author

@sbc100 sbc100 Jul 7, 2023

Choose a reason for hiding this comment

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

They are not needed, but its seems like acorn is producing them now.. I guess its just a slight behaviour change.

As you can see, no actual code size tests regressed so I guess closure is able just erase these.

If we care we would need to investigate why acorn started doing this.. and see if we can disable it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you think we care about these braces?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I guess closure fixes this up. Odd terser slightly regressed here but probably this is related to some bugfix for them...

@sbc100 sbc100 merged commit fb04dc6 into main Jul 7, 2023
@sbc100 sbc100 deleted the update_terser_again branch July 7, 2023 22:19
sbc100 added a commit that referenced this pull request Jul 7, 2023
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.

Optional chaining operator does not compile
2 participants