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

Tidy up js wrapper function generation. NFC. #8603

Merged
merged 1 commit into from
May 14, 2019
Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 14, 2019

This doesn't change anything but the formatting of the output JS
file WRT to wrapper functions for native exports.

This doesn't change anything but the formatting of the output JS
file WRT to wrapper functions for native exports.
};
''' for s in receiving)
''' % {'name': name, 'runtime_assertions': runtime_assertions})
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know % could take a dictionary

I prefer '{name}({args})'.format({'name': name, 'args': args}) for this sort of thing, but it's probably moot. In particular it swaps paren ambiguity for curly ambiguity, so lgtm or whatever (although .format escapes curly ambiguity with {{... anyway neither option is great so who cares)

@sbc100 sbc100 merged commit fcc1456 into incoming May 14, 2019
@sbc100 sbc100 deleted the cleanup_wasm_wrappers branch May 14, 2019 03:31
VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
This doesn't change anything but the formatting of the output JS
file WRT to wrapper functions for native exports.
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
This doesn't change anything but the formatting of the output JS
file WRT to wrapper functions for native exports.
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.

2 participants