Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 20, 2023

Fixes: #18357

@sbc100 sbc100 requested review from kleisauke and kripken June 20, 2023 21:01
emcc.py Outdated

src = '''
%(maybe_async)sfunction(%(EXPORT_NAME)s = {}) {
%(maybe_async)s (Module = {}) => {
Copy link
Member

Choose a reason for hiding this comment

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

The logic is pretty complex in this function and I can't quite follow it. Can you explain why this change is valid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the case of MODULARIZE we no longer var Module = .. in shell.js because we know we can are going to receive it via the (possibly default) argument here.

In shell.js now define var {{ EXPORT_NAME }} .. locally just in case the user wants to refer to it locally by this name.. I've added a comment and a TODO about that.

@sbc100 sbc100 force-pushed the fix_safari_issue branch from f2e7b65 to 8328f53 Compare June 20, 2023 21:40
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.

Got it, thanks, lgtm

@sbc100 sbc100 force-pushed the fix_safari_issue branch 9 times, most recently from 017afaf to 3dfaf44 Compare June 21, 2023 23:59
@sbc100 sbc100 enabled auto-merge (squash) June 21, 2023 23:59
@sbc100 sbc100 force-pushed the fix_safari_issue branch 2 times, most recently from 90ca76f to e40799a Compare June 22, 2023 00:59
@sbc100 sbc100 force-pushed the fix_safari_issue branch from e40799a to 5648961 Compare June 22, 2023 04:11
@sbc100 sbc100 force-pushed the fix_safari_issue branch from 5648961 to 4f22923 Compare June 22, 2023 19:48
@sbc100 sbc100 disabled auto-merge June 22, 2023 19:48
@sbc100 sbc100 merged commit 6ede0b8 into main Jun 22, 2023
@sbc100 sbc100 deleted the fix_safari_issue branch June 22, 2023 19:48
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.

onRuntimeInitialized called on Chrome but not Safari

3 participants