time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (769B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is a ReferenceError object.
      4 
      5     This function should *not* be considered robust. While the function should
      6     always return `true` if provided a ReferenceError (or a descendant)
      7     object, false positives may occur due to the fact that the ReferenceError
      8     constructor inherits from Error and has no internal class of its own.
      9     Hence, ReferenceError impersonation is possible.
     10 
     11     Parameters
     12     ----------
     13     value: any
     14         Value to test.
     15 
     16     Returns
     17     -------
     18     bool: boolean
     19         Boolean indicating whether value is a ReferenceError object.
     20 
     21     Examples
     22     --------
     23     > var bool = {{alias}}( new ReferenceError( 'beep' ) )
     24     true
     25     > bool = {{alias}}( {} )
     26     false
     27 
     28     See Also
     29     --------
     30