@@ -464,19 +464,19 @@ Parser.prototype._normalize = function (tokens) {
464464 table . obsolete = { } ;
465465 }
466466
467- if ( ! table . obsolete [ msgctxt ] ) {
468- table . obsolete [ msgctxt ] = { } ;
467+ if ( ! Object . hasOwn ( table . obsolete , msgctxt ) ) {
468+ Object . defineProperty ( table . obsolete , msgctxt , { value : { } , writable : true , enumerable : true , configurable : true } ) ;
469469 }
470470
471471 delete tokens [ i ] . obsolete ;
472472
473- table . obsolete [ msgctxt ] [ tokens [ i ] . msgid ] = tokens [ i ] ;
473+ Object . defineProperty ( table . obsolete [ msgctxt ] , tokens [ i ] . msgid , { value : tokens [ i ] , writable : true , enumerable : true , configurable : true } ) ;
474474
475475 continue ;
476476 }
477477
478- if ( ! table . translations [ msgctxt ] ) {
479- table . translations [ msgctxt ] = { } ;
478+ if ( ! Object . hasOwn ( table . translations , msgctxt ) ) {
479+ Object . defineProperty ( table . translations , msgctxt , { value : { } , writable : true , enumerable : true , configurable : true } ) ;
480480 }
481481
482482 if ( ! table . headers && ! msgctxt && ! tokens [ i ] . msgid ) {
@@ -486,7 +486,7 @@ Parser.prototype._normalize = function (tokens) {
486486
487487 this . _validateToken ( tokens [ i ] , table . translations , msgctxt , nplurals ) ;
488488
489- table . translations [ msgctxt ] [ tokens [ i ] . msgid ] = tokens [ i ] ;
489+ Object . defineProperty ( table . translations [ msgctxt ] , tokens [ i ] . msgid , { value : tokens [ i ] , writable : true , enumerable : true , configurable : true } ) ;
490490 }
491491
492492 return table ;
0 commit comments