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

Print this page

        

*** 90,103 **** public Object nashornException; // initialized by nasgen private static PropertyMap $nasgenmap$; - static PropertyMap getInitialMap() { - return $nasgenmap$; - } - @SuppressWarnings("LeakingThisInConstructor") private NativeError(final Object msg, final ScriptObject proto, final PropertyMap map) { super(proto, map); if (msg != UNDEFINED) { this.instMessage = JSType.toString(msg); --- 90,99 ----
*** 106,116 **** } initException(this); } NativeError(final Object msg, final Global global) { ! this(msg, global.getErrorPrototype(), getInitialMap()); } private NativeError(final Object msg) { this(msg, Global.instance()); } --- 102,112 ---- } initException(this); } NativeError(final Object msg, final Global global) { ! this(msg, global.getErrorPrototype(), $nasgenmap$); } private NativeError(final Object msg) { this(msg, Global.instance()); }