@@ -50,10 +50,10 @@ function extractNumberSymbols(content, localeInfo, currencySymbols) {
5050function extractCurrencySymbols ( content ) {
5151 //eval script in the current context so that we get access to all the symbols
5252 eval ( content . toString ( ) ) ;
53- var currencySymbols = goog . i18n . currency . CurrencyInfo ;
54- currencySymbols . __proto__ = goog . i18n . currency . CurrencyInfoTier2 ;
53+ // var currencySymbols = goog.i18n.currency.CurrencyInfo;
54+ // currencySymbols.__proto__ = goog.i18n.currency.CurrencyInfoTier2;
5555
56- return currencySymbols ;
56+ return Object . assign ( { } , goog . i18n . currency . CurrencyInfoTier2 , goog . i18n . currency . CurrencyInfo ) ;
5757}
5858
5959function extractDateTimeSymbols ( content , localeInfo ) {
@@ -79,7 +79,7 @@ function pluralExtractor(content, localeInfo) {
7979 goog . LOCALE = localeIds [ i ] . match ( / [ ^ _ ] + / ) [ 0 ] ;
8080 try {
8181 eval ( contentText ) ;
82- } catch ( e ) {
82+ } catch ( e ) {
8383 console . log ( "Error in eval(contentText): " + e . stack ) ;
8484 }
8585 if ( ! goog . i18n . pluralRules . select ) {
@@ -133,7 +133,7 @@ function canonicalizeForJsonStringify(unused_key, object) {
133133
134134function serializeContent ( localeObj ) {
135135 return JSON . stringify ( localeObj , canonicalizeForJsonStringify , ' ' )
136- . replace ( new RegExp ( '[\\u007f-\\uffff]' , 'g' ) , function ( c ) { return '\\u' + ( '0000' + c . charCodeAt ( 0 ) . toString ( 16 ) ) . slice ( - 4 ) ; } )
136+ . replace ( new RegExp ( '[\\u007f-\\uffff]' , 'g' ) , function ( c ) { return '\\u' + ( '0000' + c . charCodeAt ( 0 ) . toString ( 16 ) ) . slice ( - 4 ) ; } )
137137 . replace ( / " @ @ | @ @ " / g, '' ) ;
138138}
139139
0 commit comments