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

Print this page

        

*** 57,77 **** private static final MethodHandle PROTOFILTER = findOwnMH("protoFilter", MH.type(Object.class, Object.class)); // initialized by nasgen private static PropertyMap $nasgenmap$; - static PropertyMap getInitialMap() { - return $nasgenmap$; - } - private NativeBoolean(final boolean value, final ScriptObject proto, final PropertyMap map) { super(proto, map); this.value = value; } NativeBoolean(final boolean flag, final Global global) { ! this(flag, global.getBooleanPrototype(), getInitialMap()); } NativeBoolean(final boolean flag) { this(flag, Global.instance()); } --- 57,73 ---- private static final MethodHandle PROTOFILTER = findOwnMH("protoFilter", MH.type(Object.class, Object.class)); // initialized by nasgen private static PropertyMap $nasgenmap$; private NativeBoolean(final boolean value, final ScriptObject proto, final PropertyMap map) { super(proto, map); this.value = value; } NativeBoolean(final boolean flag, final Global global) { ! this(flag, global.getBooleanPrototype(), $nasgenmap$); } NativeBoolean(final boolean flag) { this(flag, Global.instance()); }