Skip to content

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

Merged
sbc100 merged 1 commit into
mainfrom
update_terser_again
Jul 7, 2023
Merged

sbc100 merged 1 commit into
mainfrom
update_terser_again

Conversation

@sbc100

@sbc100 sbc100 commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator

Fixes: #15827

@sbc100
sbc100 force-pushed the update_terser_again branch from 7e004c8 to 08e2361 Compare July 7, 2023 15:35
initRuntime(asm);
ready();
});
}));

Copy link
Copy Markdown
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?

@sbc100 sbc100 Jul 7, 2023 •

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
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
Copy Markdown
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