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

Print this page

        

@@ -83,10 +83,14 @@
 
     /** ECMA 15.11.4.3 Error.prototype.message */
     @Property(attributes = Attribute.NOT_ENUMERABLE, where = Where.PROTOTYPE)
     public Object message;
 
+    /** Nashorn extension: underlying exception */ 
+    @Property(attributes = Attribute.NOT_ENUMERABLE)
+    public Object nashornException;
+
     // initialized by nasgen
     private static PropertyMap $nasgenmap$;
 
     static PropertyMap getInitialMap() {
         return $nasgenmap$;