Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Oct 16, 2024
1 parent 45c481d commit 445bc0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/html/src/core/intl/node-gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default class Gettext extends RawGettext {
if (String(locale) === "__proto__") {
throw new RangeError("Invalid locale");
}
if (String(domain) === "__proto__") {
throw new RangeError("Invalid domain");
}
return super.addTranslations.call(this, locale, domain, translations);
}
}

0 comments on commit 445bc0c

Please sign in to comment.