time-to-botec

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

repl.txt (704B)


      1 
      2 {{alias}}( str )
      3     Alias for `eval` global.
      4 
      5     A reference to `eval` is treated differently by the compiler. For example,
      6     when evaluating code containing block-scoped declarations  (e.g., `let`,
      7     `const`, `function`, `class`), the compiler may throw an `error` complaining
      8     that block-scoped declarations are not yet supported outside of
      9     `strict mode`. One possible workaround is to include `"use strict";` in the
     10     evaluated code.
     11 
     12     Parameters
     13     ----------
     14     str: string
     15         Code to evaluate.
     16 
     17     Returns
     18     -------
     19     out: any
     20         Returned value if applicable.
     21 
     22     Examples
     23     --------
     24     > var v = {{alias}}( '5*4*3*2*1' )
     25     120
     26 
     27     See Also
     28     --------
     29