Skip to content

Global side effects that are not cleared yet #7918

@TheAlexLichter

Description

@TheAlexLichter

Please double check, depending on the constraints/assumptions we make some might not apply, but in plain JS these are all side effect free:

REPL

  AggregateError([])                
  Array()                           
  Array(0)                          
  Array(100)                        
  Array(1, 2, 3)                    
  ArrayBuffer(0)                    
  ArrayBuffer(100)                  
  Int8Array(0)                      
  Int8Array(10)                     
  Uint8Array(10)                    
  Uint8ClampedArray(10)             
  Int16Array(10)                    
  Uint16Array(10)                   
  Int32Array(10)                    
  Uint32Array(10)                   
  Float32Array(10)                  
  Float64Array(10)                  
  BigInt64Array(10)                 
  BigUint64Array(10)                
  Map()                             
  Set()                
  new WeakMap([[{}, 1]])       
  new WeakSet([{}])
  new WeakRef({})                   
  new WeakRef(Symbol("x"))          // (symbols allowed)
  new Promise(() => {})
  new Proxy({}, {})
  new FinalizationRegistry(() => {}) 
  Function()                         // (empty function)

Metadata

Metadata

Assignees

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions