Skip to content

Fix more Closure warnings #10525

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 3 commits into from
Feb 22, 2020
Merged

Conversation

juj
Copy link
Collaborator

@juj juj commented Feb 21, 2020

Getting closer to Closure clean.

@@ -1735,7 +1742,11 @@ for (var x in SyscallsLibrary) {
}
#if SYSCALL_DEBUG
if (which && t.indexOf(', varargs') != -1) {
post += 'SYSCALLS.varargs = undefined;\n';
if (canThrow) {
post += 'finally { SYSCALLS.varargs = undefined; }\n';
Copy link
Member

Choose a reason for hiding this comment

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

do we always emit a try if SYSCALL_DEBUG? (even if it's nothrow etc.?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, only if canThrow is enabled.

@juj juj merged commit 1fc7303 into emscripten-core:master Feb 22, 2020
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jun 16, 2025
Looks like this was originally added in emscripten-core#10525.

Perhaps closure compiler used to have a distinct type for `arguments`
builtin in JS?  I can't see any mention of it in closure compiler
documentation today though.

Fixes: emscripten-core#24579
sbc100 added a commit that referenced this pull request Jun 17, 2025
Looks like this was originally added in #10525.

Perhaps closure compiler used to have a distinct type for `arguments`
builtin in JS? I can't see any mention of it in closure compiler
documentation today though.

Fixes: #24579
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