Bug 1782212 - Part 24: Add curly brackets to js/src/builtin/intl/DisplayNames.js. r=tcampbell

Depends on D153194

Differential Revision: https://phabricator.services.mozilla.com/D153195
This commit is contained in:
André Bargull 2022-08-03 06:38:04 +00:00
parent fbf760df59
commit d7e10cb86f

View File

@ -94,8 +94,9 @@ function getDisplayNamesInternals(obj) {
// If internal properties have already been computed, use them.
var internalProps = maybeInternalProperties(internals);
if (internalProps)
if (internalProps) {
return internalProps;
}
// Otherwise it's time to fully create them.
internalProps = resolveDisplayNamesInternals(internals.lazyData);
@ -156,8 +157,9 @@ function InitializeDisplayNames(displayNames, locales, options, mozExtensions) {
lazyDisplayNamesData.requestedLocales = requestedLocales;
// Step 4.
if (!IsObject(options))
if (!IsObject(options)) {
ThrowTypeError(JSMSG_OBJECT_REQUIRED, options === null ? "null" : typeof options);
}
// Step 5.
var opt = new_Record();