src/jdk/nashorn/internal/objects/NativeReferenceError.java

Print this page




  27 
  28 import static jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED;
  29 
  30 import jdk.nashorn.internal.objects.annotations.Attribute;
  31 import jdk.nashorn.internal.objects.annotations.Constructor;
  32 import jdk.nashorn.internal.objects.annotations.Property;
  33 import jdk.nashorn.internal.objects.annotations.ScriptClass;
  34 import jdk.nashorn.internal.objects.annotations.Where;
  35 import jdk.nashorn.internal.runtime.JSType;
  36 import jdk.nashorn.internal.runtime.PropertyMap;
  37 import jdk.nashorn.internal.runtime.ScriptObject;
  38 
  39 /**
  40  * ECMA 15.11.6.3 ReferenceError
  41  *
  42  */
  43 @ScriptClass("Error")
  44 public final class NativeReferenceError extends ScriptObject {
  45 
  46     /** message property in instance */
  47     @Property(name = NativeError.MESSAGE)
  48     public Object instMessage;
  49 
  50     /** error name property */
  51     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  52     public Object name;
  53 
  54     /** ECMA 15.1.1.1 message property */
  55     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  56     public Object message;
  57 
  58     // initialized by nasgen
  59     private static PropertyMap $nasgenmap$;
  60 
  61     static PropertyMap getInitialMap() {
  62         return $nasgenmap$;
  63     }
  64 
  65     @SuppressWarnings("LeakingThisInConstructor")
  66     private NativeReferenceError(final Object msg, final ScriptObject proto, final PropertyMap map) {
  67         super(proto, map);




  27 
  28 import static jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED;
  29 
  30 import jdk.nashorn.internal.objects.annotations.Attribute;
  31 import jdk.nashorn.internal.objects.annotations.Constructor;
  32 import jdk.nashorn.internal.objects.annotations.Property;
  33 import jdk.nashorn.internal.objects.annotations.ScriptClass;
  34 import jdk.nashorn.internal.objects.annotations.Where;
  35 import jdk.nashorn.internal.runtime.JSType;
  36 import jdk.nashorn.internal.runtime.PropertyMap;
  37 import jdk.nashorn.internal.runtime.ScriptObject;
  38 
  39 /**
  40  * ECMA 15.11.6.3 ReferenceError
  41  *
  42  */
  43 @ScriptClass("Error")
  44 public final class NativeReferenceError extends ScriptObject {
  45 
  46     /** message property in instance */
  47     @Property(name = NativeError.MESSAGE, attributes = Attribute.NOT_ENUMERABLE)
  48     public Object instMessage;
  49 
  50     /** error name property */
  51     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  52     public Object name;
  53 
  54     /** ECMA 15.1.1.1 message property */
  55     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  56     public Object message;
  57 
  58     // initialized by nasgen
  59     private static PropertyMap $nasgenmap$;
  60 
  61     static PropertyMap getInitialMap() {
  62         return $nasgenmap$;
  63     }
  64 
  65     @SuppressWarnings("LeakingThisInConstructor")
  66     private NativeReferenceError(final Object msg, final ScriptObject proto, final PropertyMap map) {
  67         super(proto, map);