File tree Expand file tree Collapse file tree 6 files changed +21
-0
lines changed Expand file tree Collapse file tree 6 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ rules:
3838    - name : Boolean 
3939    - name : DataView 
4040    - name : Date 
41+     - name : decodeURI 
42+     - name : decodeURIComponent 
43+     - name : encodeURI 
44+     - name : encodeURIComponent 
4145    - name : Error 
4246      ignore :
4347        - prepareStackTrace 
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ const {
107107  WeakMapPrototype, 
108108  WeakSet, 
109109  WeakSetPrototype, 
110+   decodeURI, 
111+   decodeURIComponent, 
112+   encodeURI, 
113+   encodeURIComponent, 
110114}  =  primordials ; 
111115
112116module . exports  =  function ( )  { 
Original file line number Diff line number Diff line change @@ -173,6 +173,16 @@ primordials.SafeWeakSet = makeSafe(
173173  } 
174174) ; 
175175
176+ // Create copies of URI handling functions 
177+ [ 
178+   decodeURI , 
179+   decodeURIComponent , 
180+   encodeURI , 
181+   encodeURIComponent , 
182+ ] . forEach ( ( fn )  =>  { 
183+   primordials [ fn . name ]  =  fn ; 
184+ } ) ; 
185+ 
176186// Create copies of the namespace objects 
177187[ 
178188  'JSON' , 
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const {
3030  Symbol, 
3131  SymbolIterator, 
3232  SymbolToStringTag, 
33+   decodeURIComponent, 
3334}  =  primordials ; 
3435
3536const  {  inspect }  =  require ( 'internal/util/inspect' ) ; 
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const {
3434  String, 
3535  StringPrototypeCharCodeAt, 
3636  StringPrototypeSlice, 
37+   decodeURIComponent, 
3738}  =  primordials ; 
3839
3940const  {  Buffer }  =  require ( 'buffer' ) ; 
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const {
2727  ObjectKeys, 
2828  SafeSet, 
2929  StringPrototypeCharCodeAt, 
30+   decodeURIComponent, 
3031}  =  primordials ; 
3132
3233const  {  toASCII }  =  require ( 'internal/idna' ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments