Skip to content

Fix more Closure warnings#10525

Merged
juj merged 3 commits intoemscripten-core:masterfrom
juj:even_more_cleaner_closure
Feb 22, 2020
Merged

Fix more Closure warnings#10525
juj merged 3 commits intoemscripten-core:masterfrom
juj:even_more_cleaner_closure

Conversation

@juj
Copy link
Collaborator

@juj juj commented Feb 21, 2020

Getting closer to Closure clean.

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