-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P3
-
None
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
Test case attached. An incomplete UTF-16 (thumbs up emoticon) is used to create a String.
- getting charCodeAt on the JS instance returns the surrogate, that is expected.
- getting charCodeAt on the Java instance returns 0xFFFD. This is the way Java String codePointAt is behaving.
Both function should return the surrogate.
- getting charCodeAt on the JS instance returns the surrogate, that is expected.
- getting charCodeAt on the Java instance returns 0xFFFD. This is the way Java String codePointAt is behaving.
Both function should return the surrogate.