mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
fbf760df59
commit
d7e10cb86f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user