Class JSES5ErrorPrototypeObject

All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject

public final class JSES5ErrorPrototypeObject extends JSNonProxyObject
ES5 Error prototype objects have [[Class]] "Error" but do not carry a captured exception.
  • Constructor Details

    • JSES5ErrorPrototypeObject

      protected JSES5ErrorPrototypeObject(com.oracle.truffle.api.object.Shape shape, JSDynamicObject proto)
  • Method Details

    • create

      public static JSES5ErrorPrototypeObject create(com.oracle.truffle.api.object.Shape shape, JSDynamicObject proto)
    • getClassName

      public com.oracle.truffle.api.strings.TruffleString getClassName()
      Description copied from class: JSDynamicObject
      The [[Class]] internal property. For ES5, this is the second part of what Object.prototype.toString.call(myObj) returns, e.g. "[object Array]".
      Overrides:
      getClassName in class JSNonProxyObject