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

Print this page




  26 package jdk.nashorn.internal.objects;
  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.6 URIError
  41  */
  42 @ScriptClass("Error")
  43 public final class NativeURIError extends ScriptObject {
  44 
  45     /** message property in instance */
  46     @Property(name = NativeError.MESSAGE)
  47     public Object instMessage;
  48 
  49     /** error name property */
  50     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  51     public Object name;
  52 
  53     /** ECMA 15.1.1.1 message property */
  54     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  55     public Object message;
  56 
  57     // initialized by nasgen
  58     private static PropertyMap $nasgenmap$;
  59 
  60     static PropertyMap getInitialMap() {
  61         return $nasgenmap$;
  62     }
  63 
  64     @SuppressWarnings("LeakingThisInConstructor")
  65     NativeURIError(final Object msg, final Global global) {
  66         super(global.getURIErrorPrototype(), global.getURIErrorMap());




  26 package jdk.nashorn.internal.objects;
  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.6 URIError
  41  */
  42 @ScriptClass("Error")
  43 public final class NativeURIError extends ScriptObject {
  44 
  45     /** message property in instance */
  46     @Property(name = NativeError.MESSAGE, attributes = Attribute.NOT_ENUMERABLE)
  47     public Object instMessage;
  48 
  49     /** error name property */
  50     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  51     public Object name;
  52 
  53     /** ECMA 15.1.1.1 message property */
  54     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
  55     public Object message;
  56 
  57     // initialized by nasgen
  58     private static PropertyMap $nasgenmap$;
  59 
  60     static PropertyMap getInitialMap() {
  61         return $nasgenmap$;
  62     }
  63 
  64     @SuppressWarnings("LeakingThisInConstructor")
  65     NativeURIError(final Object msg, final Global global) {
  66         super(global.getURIErrorPrototype(), global.getURIErrorMap());