You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.
ECMAScript implementations must recognize as WhiteSpace code points listed in the “Separator, space” (Zs) category.
The MONGOLIAN VOWEL SEPARATOR U+180E used to be in Zs but was moved to Cf in Unicode 6.3.0. ES7 mandates Unicode 8.0.0 or higher. As a result, whitespace-sensitive methods will behave differently.
For example, consider "\u180e".trim().length. An ES6-compatible browser like Safari 11 will remove the character, yielding a length of 0. However, an ES7-compatible engine should not remove the character, yielding a length of 1.
String#trim and other methods that lean on whitespace are affected.
The text was updated successfully, but these errors were encountered:
There was a backwards-incompatible change in ES7 corresponding to whitespace, as the Unicode version pin was removed:
https://www.ecma-international.org/ecma-262/6.0/#sec-white-space
https://www.ecma-international.org/ecma-262/7.0/#sec-white-space
The MONGOLIAN VOWEL SEPARATOR U+180E used to be in Zs but was moved to Cf in Unicode 6.3.0. ES7 mandates Unicode 8.0.0 or higher. As a result, whitespace-sensitive methods will behave differently.
For example, consider
"\u180e".trim().length
. An ES6-compatible browser like Safari 11 will remove the character, yielding a length of 0. However, an ES7-compatible engine should not remove the character, yielding a length of 1.String#trim and other methods that lean on whitespace are affected.
The text was updated successfully, but these errors were encountered: