Class Arguments.ThrowTypeError

All Implemented Interfaces:
Serializable, Callable, ConstProperties, Constructable, DebuggableObject, Function, IdFunctionCall, Scriptable, SymbolScriptable
Enclosing class:
Arguments

private static class Arguments.ThrowTypeError extends BaseFunction
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • propertyName

      private String propertyName
  • Constructor Details

    • ThrowTypeError

      ThrowTypeError(String propertyName)
  • Method Details

    • call

      public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
      Description copied from class: BaseFunction
      Should be overridden.
      Specified by:
      call in interface Callable
      Specified by:
      call in interface Function
      Overrides:
      call in class BaseFunction
      Parameters:
      cx - the current Context for this thread
      scope - the scope to execute the function relative to. This is set to the value returned by getParentScope() except when the function is called from a closure.
      thisObj - the JavaScript this object
      args - the array of arguments
      Returns:
      the result of the call