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

Print this page

        

*** 59,75 **** --- 59,77 ---- static PropertyMap getInitialMap() { return $nasgenmap$; } + @SuppressWarnings("LeakingThisInConstructor") NativeURIError(final Object msg, final Global global) { super(global.getURIErrorPrototype(), global.getURIErrorMap()); if (msg != UNDEFINED) { this.instMessage = JSType.toString(msg); } else { this.delete(NativeError.MESSAGE, false); } + NativeError.initException(this); } private NativeURIError(final Object msg) { this(msg, Global.instance()); }