Skip to content

Fix JSC_UNDEFINED_VARIABLE in libeventloop.js#27061

Open
stephenduong1004 wants to merge 2 commits into
emscripten-core:mainfrom
stephenduong1004:main
Open

Fix JSC_UNDEFINED_VARIABLE in libeventloop.js#27061
stephenduong1004 wants to merge 2 commits into
emscripten-core:mainfrom
stephenduong1004:main

Conversation

@stephenduong1004

Copy link
Copy Markdown
Collaborator

Fix error [JSC_UNDEFINED_VARIABLE] variable scheduler is undeclared MainLoop.setImmediate = scheduler.postTask.bind(scheduler);

Fix error [JSC_UNDEFINED_VARIABLE] variable scheduler is undeclared
`MainLoop.setImmediate = scheduler.postTask.bind(scheduler);`
@sbc100

sbc100 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

I would hope we can do this instead by teaching closure-compiler about this new global.

Somehow the version of closure compiler we are using doee know about this..

@sbc100

sbc100 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Oh, yes, I added this to src/closure-externs/closure-externs.js when I landed this change in #26985.

If you are trying to run closure compiler after emscripten you probably want to somehow include the same externs files such as closure-externs.js

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