Support Unicode supplementary planes (#3928)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -84,13 +84,6 @@ assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toLower
|
||||
assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toUpperCase()
|
||||
== "0123456789ABCDEFGHIJKLMNOPQRSTUVWXZYABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
||||
|
||||
// Although codepoint 0x10400 and 0x10428 are an upper-lowercase pair,
|
||||
// we must not do their conversion in JavaScript. We must also ignore
|
||||
// stray surrogates.
|
||||
|
||||
assert ("\ud801\ud801\udc00\udc00".toLowerCase() == "\ud801\ud801\udc00\udc00");
|
||||
assert ("\ud801\ud801\udc28\udc28".toUpperCase() == "\ud801\ud801\udc28\udc28");
|
||||
|
||||
// Conversion of non-string objects.
|
||||
|
||||
assert (String.prototype.toUpperCase.call(true) == "TRUE");
|
||||
|
||||
Reference in New Issue
Block a user