Skip to content

Error on bad JS library elements #12673

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

Merged
merged 2 commits into from
Nov 2, 2020
Merged

Error on bad JS library elements #12673

merged 2 commits into from
Nov 2, 2020

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 2, 2020

For libary config element such as foo__sig error out if
the corresponding library member is not found (in this
case if foo is not in the library.

This found memcpy__inline which can be removed since
memcpy is no longer part of the JS library.

Also remove __inline completely since this was the last
use of it, and its asmjs specific.

For libary config element such as `foo__sig` error out if
the corresponding library member is not found (in this
case if `foo` is not in the library.

This found `memcpy__inline` which can be removed since
memcpy is no longer part of the JS library.

Also remove `__inline` completely since this was the last
use of it, and its asmjs specific.
@sbc100 sbc100 requested a review from kripken November 2, 2020 01:30
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.

I think we can get rid of __inline entirely, btw - it just made sense for asm.js.

@@ -9578,6 +9578,17 @@ def test_jslib_clobber_i(self):
'--js-library=lib1.js',
'--js-library=lib2.js'])

def test_jslib_bad_config(self):
# Regression check for an issue we have where a library clobbering the global `i` variable could
# prevent processing of further libraries.
Copy link
Member

Choose a reason for hiding this comment

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

this comment looks copy-pasted and inaccurate?

@sbc100
Copy link
Collaborator Author

sbc100 commented Nov 2, 2020

Yes this change does effectively get rid of __inline entirely.

@sbc100 sbc100 merged commit a516755 into master Nov 2, 2020
@sbc100 sbc100 deleted the check_library_elements branch November 2, 2020 17:03
brendandahl added a commit to brendandahl/emscripten that referenced this pull request Feb 6, 2025
brendandahl added a commit that referenced this pull request May 8, 2025
Looks like this was removed in #12673
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