src/jdk/nashorn/internal/objects/NativeEvalError.java
Print this page
*** 60,76 ****
--- 60,78 ----
static PropertyMap getInitialMap() {
return $nasgenmap$;
}
+ @SuppressWarnings("LeakingThisInConstructor")
private NativeEvalError(final Object msg, final ScriptObject proto, final PropertyMap map) {
super(proto, map);
if (msg != UNDEFINED) {
this.instMessage = JSType.toString(msg);
} else {
this.delete(NativeError.MESSAGE, false);
}
+ NativeError.initException(this);
}
NativeEvalError(final Object msg, final Global global) {
this(msg, global.getEvalErrorPrototype(), global.getEvalErrorMap());
}