@@ -760,7 +760,7 @@ describe('replaceImportIdentifier', () => {
760760
761761describe ( 'freezeRuntime' , ( ) => {
762762 beforeEach ( ( ) => {
763- // 清理全局状态
763+ // Clean up global state
764764 delete ( window as any ) . __icestark_locked_globals ;
765765 delete ( window as any ) [ '[email protected] ' ] ; 766766 delete ( window as any ) [ '[email protected] _value' ] ; @@ -777,7 +777,7 @@ describe('freezeRuntime', () => {
777777 } ) ;
778778
779779 test ( 'should freeze runtime libraries when freezeRuntime is enabled' , async ( ) => {
780- // 模拟启用冻结功能
780+ // Mock enabling freeze functionality
781781 const originalConfig = globalConfiguration . freezeRuntime ;
782782 globalConfiguration . freezeRuntime = true ;
783783
@@ -803,7 +803,7 @@ describe('freezeRuntime', () => {
803803 } ) ;
804804
805805 test ( 'should not freeze runtime libraries when freezeRuntime is disabled' , async ( ) => {
806- // 确保冻结功能被禁用
806+ // Ensure freeze functionality is disabled
807807 const originalConfig = globalConfiguration . freezeRuntime ;
808808 globalConfiguration . freezeRuntime = false ;
809809
@@ -836,7 +836,7 @@ describe('freezeRuntime', () => {
836836 if ( ( this as any ) [ '[email protected] _value' ] === undefined ) { 837837 ( this as any ) [ '[email protected] _value' ] = value ; 838838 }
839- // 忽略后续的修改
839+ // Ignore subsequent modifications
840840 } ,
841841 configurable : false ,
842842 enumerable : true
@@ -848,7 +848,7 @@ describe('freezeRuntime', () => {
848848 ( window as any ) [ '[email protected] ' ] = { version :
'18.0.0' } ; 849849 expect ( ( window as any ) [ '[email protected] ' ] ) . toEqual ( { version :
'17.0.0' } ) ; 850850
851- // 清理
851+ // Cleanup
852852 delete ( window as any ) [ '[email protected] ' ] ; 853853 delete ( window as any ) [ '[email protected] _value' ] ; 854854 } ) ;
0 commit comments