File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,6 @@ setupProcessObject();
5555if ( typeof Packages !== 'undefined' ) {
5656 Packages [ Symbol . toStringTag ] = 'Packages' ; // breaking isRhino check of acorn package
5757}
58- if ( typeof FinalizationRegistry !== 'undefined' ) {
59- Object . defineProperty ( globalThis , 'FinalizationGroup' , {
60- value : FinalizationRegistry ,
61- enumerable : false ,
62- writable : true ,
63- configurable : true
64- } ) ;
65- }
6658// graal-node.js patch end
6759
6860setupGlobalProxy ( ) ;
Original file line number Diff line number Diff line change @@ -91,4 +91,7 @@ describe('Other', function () {
9191 // should not fail (fails when Node.js is built without intl support)
9292 new util . TextDecoder ( 'utf-8' , { fatal : true } ) ;
9393 } ) ;
94+ it ( 'should not define FinalizationGroup' , function ( ) {
95+ assert . strictEqual ( global . FinalizationGroup , undefined ) ;
96+ } ) ;
9497} ) ;
You can’t perform that action at this time.
0 commit comments