mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-20 07:00:58 +08:00
fix(web): guard t() against prototype keys and check the dictionary in CI
t() looked a key up with dict[key] ?? key, so t("constructor") returned
Object and t("toString", {}) threw. Backend values are used as keys, so
this was reachable. Use an own-property check for the dictionary and the
vars, and commit the key-check script as npm run test:i18n in the web
job so tr.json cannot drift.
This commit is contained in:
@@ -149,6 +149,7 @@ jobs:
|
||||
- run: npm run test:polling
|
||||
- run: npm run test:replay
|
||||
- run: npm run test:upload
|
||||
- run: npm run test:i18n
|
||||
- run: npm run build:static
|
||||
|
||||
python:
|
||||
|
||||
Reference in New Issue
Block a user