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

fix(web) fix generated config syntax #2038

Merged
merged 2 commits into from
Feb 28, 2025
Merged

fix(web) fix generated config syntax #2038

merged 2 commits into from
Feb 28, 2025

Conversation

saghul
Copy link
Member

@saghul saghul commented Feb 28, 2025

Arrow functions don't work on the JS interpreter which evaluates config.js on Android.

@saghul saghul force-pushed the fix-es6-syntax branch 2 times, most recently from 8a93047 to 892b564 Compare February 28, 2025 20:14
This is the version we evaluate config.js with on Android, making it the
lowest common denominator. While being a nifty little engine, it suffers
from not being fully ES6 compliant, so things like arrow functions or
template strings are not implemented.
Arrow functions don't work on the JS interpreter which evaluates
config.js on Android.

Fixes: #2031
@saghul
Copy link
Member Author

saghul commented Feb 28, 2025

Example of previously failing: https://github.com/jitsi/docker-jitsi-meet/actions/runs/13595798766/job/38012303929

 SyntaxError: parse error (line 77)
    at [anon] (/tmp/config.js:77) internal
    at [anon] (duk_js_compiler.c:3715) internal
error in executing file /tmp/config.js

That was without the 2nd commit. Now config is tested through Duktape, not Node, like it runs on Android.

@saghul saghul merged commit 754c0b5 into master Feb 28, 2025
2 checks passed
@saghul saghul deleted the fix-es6-syntax branch February 28, 2025 20:23
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.

1 participant