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

Print this page

        

*** 60,73 **** public Object nashornException; // initialized by nasgen private static PropertyMap $nasgenmap$; - static PropertyMap getInitialMap() { - return $nasgenmap$; - } - @SuppressWarnings("LeakingThisInConstructor") private NativeReferenceError(final Object msg, final ScriptObject proto, final PropertyMap map) { super(proto, map); if (msg != UNDEFINED) { this.instMessage = JSType.toString(msg); --- 60,69 ----
*** 76,86 **** } NativeError.initException(this); } NativeReferenceError(final Object msg, final Global global) { ! this(msg, global.getReferenceErrorPrototype(), getInitialMap()); } private NativeReferenceError(final Object msg) { this(msg, Global.instance()); } --- 72,82 ---- } NativeError.initException(this); } NativeReferenceError(final Object msg, final Global global) { ! this(msg, global.getReferenceErrorPrototype(), $nasgenmap$); } private NativeReferenceError(final Object msg) { this(msg, Global.instance()); }