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

Print this page

        

*** 36,45 **** --- 36,46 ---- import java.text.Collator; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; + import java.util.Locale; import jdk.internal.dynalink.CallSiteDescriptor; import jdk.internal.dynalink.linker.GuardedInvocation; import jdk.internal.dynalink.linker.LinkRequest; import jdk.nashorn.internal.lookup.MethodHandleFactory; import jdk.nashorn.internal.objects.annotations.Attribute;
*** 995,1005 **** * @param self self reference * @return string to lower case */ @Function(attributes = Attribute.NOT_ENUMERABLE) public static Object toLowerCase(final Object self) { ! return checkObjectToString(self).toLowerCase(); } /** * ECMA 15.5.4.17 String.prototype.toLocaleLowerCase ( ) * @param self self reference --- 996,1006 ---- * @param self self reference * @return string to lower case */ @Function(attributes = Attribute.NOT_ENUMERABLE) public static Object toLowerCase(final Object self) { ! return checkObjectToString(self).toLowerCase(Locale.ROOT); } /** * ECMA 15.5.4.17 String.prototype.toLocaleLowerCase ( ) * @param self self reference
*** 1015,1025 **** * @param self self reference * @return string to upper case */ @Function(attributes = Attribute.NOT_ENUMERABLE) public static Object toUpperCase(final Object self) { ! return checkObjectToString(self).toUpperCase(); } /** * ECMA 15.5.4.19 String.prototype.toLocaleUpperCase ( ) * @param self self reference --- 1016,1026 ---- * @param self self reference * @return string to upper case */ @Function(attributes = Attribute.NOT_ENUMERABLE) public static Object toUpperCase(final Object self) { ! return checkObjectToString(self).toUpperCase(Locale.ROOT); } /** * ECMA 15.5.4.19 String.prototype.toLocaleUpperCase ( ) * @param self self reference