Documentation
    Preparing search index...
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    globals: GenObj

    The stable bindings - the State eval_context - shared by every evaluation.

    Methods

    • Compile an expression against a set of names, so later evaluate calls with the same names are only a function call.

      Parameters

      • expression: string
      • names: string[] = []

      Returns Function

    • Evaluate expression with context in scope. Names not in context fall through to the sandbox - the eval_context - and are a ReferenceError if absent there too, as before.

      Parameters

      • expression: string
      • context: GenObj = {}

      Returns any