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

Print this page

        

*** 112,135 **** private final TimeZone timezone; // initialized by nasgen private static PropertyMap $nasgenmap$; - static PropertyMap getInitialMap() { - return $nasgenmap$; - } - private NativeDate(final double time, final ScriptObject proto, final PropertyMap map) { super(proto, map); final ScriptEnvironment env = Global.getEnv(); this.time = time; this.timezone = env._timezone; } NativeDate(final double time, final Global global) { ! this(time, global.getDatePrototype(), getInitialMap()); } private NativeDate (final double time) { this(time, Global.instance()); } --- 112,131 ---- private final TimeZone timezone; // initialized by nasgen private static PropertyMap $nasgenmap$; private NativeDate(final double time, final ScriptObject proto, final PropertyMap map) { super(proto, map); final ScriptEnvironment env = Global.getEnv(); this.time = time; this.timezone = env._timezone; } NativeDate(final double time, final Global global) { ! this(time, global.getDatePrototype(), $nasgenmap$); } private NativeDate (final double time) { this(time, Global.instance()); }