// Non-BMP characters are generally passed to JS in UTF-16, as surrogate pairs. // ES6 requires that such pairs be treated as a single code point in for-of.
test('\ud808\udf45', 1);
// Also test invalid surrogate pairs: // (1) High surrogate not followed by low surrogate
test('\ud808', 1);
test('\ud808\u0000', 2); // (2) Low surrogate not preceded by high surrogate
test('\udf45', 1);
test('\u0000\udf45', 2); // (3) Low surrogate followed by high surrogate
test('\udf45\ud808', 2);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.