src/jdk/nashorn/internal/objects/NativeNumber.java
Print this page
*** 88,110 ****
private final boolean isLong;
// initialized by nasgen
private static PropertyMap $nasgenmap$;
- static PropertyMap getInitialMap() {
- return $nasgenmap$;
- }
-
private NativeNumber(final double value, final ScriptObject proto, final PropertyMap map) {
super(proto, map);
this.value = value;
this.isInt = isRepresentableAsInt(value);
this.isLong = isRepresentableAsLong(value);
}
NativeNumber(final double value, final Global global) {
! this(value, global.getNumberPrototype(), getInitialMap());
}
private NativeNumber(final double value) {
this(value, Global.instance());
}
--- 88,106 ----
private final boolean isLong;
// initialized by nasgen
private static PropertyMap $nasgenmap$;
private NativeNumber(final double value, final ScriptObject proto, final PropertyMap map) {
super(proto, map);
this.value = value;
this.isInt = isRepresentableAsInt(value);
this.isLong = isRepresentableAsLong(value);
}
NativeNumber(final double value, final Global global) {
! this(value, global.getNumberPrototype(), $nasgenmap$);
}
private NativeNumber(final double value) {
this(value, Global.instance());
}