@@ -106,7 +106,7 @@ export function/* 12.1.1.1 */InitializeDateTimeFormat (dateTimeFormat, locales,
106
106
let internal = getInternalProperties ( dateTimeFormat ) ;
107
107
108
108
// Create an object whose props can be used to restore the values of RegExp props
109
- let regexpState = createRegExpRestore ( ) ;
109
+ let regexpRestore = createRegExpRestore ( ) ;
110
110
111
111
// 1. If dateTimeFormat has an [[initializedIntlObject]] internal property with
112
112
// value true, throw a TypeError exception.
@@ -337,7 +337,7 @@ export function/* 12.1.1.1 */InitializeDateTimeFormat (dateTimeFormat, locales,
337
337
dateTimeFormat . format = GetFormatDateTime . call ( dateTimeFormat ) ;
338
338
339
339
// Restore the RegExp properties
340
- regexpState . exp . test ( regexpState . input ) ;
340
+ regexpRestore ( ) ;
341
341
342
342
// Return the newly initialised object
343
343
return dateTimeFormat ;
@@ -763,7 +763,7 @@ defineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {
763
763
throw new TypeError ( 'supportedLocalesOf() is not a constructor' ) ;
764
764
765
765
// Create an object whose props can be used to restore the values of RegExp props
766
- let regexpState = createRegExpRestore ( ) ,
766
+ let regexpRestore = createRegExpRestore ( ) ,
767
767
768
768
// 1. If options is not provided, then let options be undefined.
769
769
options = arguments [ 1 ] ,
@@ -779,7 +779,7 @@ defineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {
779
779
requestedLocales = CanonicalizeLocaleList ( locales ) ;
780
780
781
781
// Restore the RegExp properties
782
- regexpState . exp . test ( regexpState . input ) ;
782
+ regexpRestore ( ) ;
783
783
784
784
// 4. Return the result of calling the SupportedLocales abstract operation
785
785
// (defined in 9.2.8) with arguments availableLocales, requestedLocales,
@@ -865,7 +865,7 @@ function CreateDateTimeParts(dateTimeFormat, x) {
865
865
let internal = dateTimeFormat . __getInternalProperties ( secret ) ;
866
866
867
867
// Creating restore point for properties on the RegExp object... please wait
868
- /* let regexpState = */ createRegExpRestore ( ) ; // ###TODO: review this
868
+ /* let regexpRestore = */ createRegExpRestore ( ) ; // ###TODO: review this
869
869
870
870
// 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.
871
871
let locale = internal [ '[[locale]]' ] ;
0 commit comments