Claude Pache (2015-10-07T10:08:47.000Z)
d at domenic.me (2015-10-12T20:37:23.477Z)
> Le 7 oct. 2015 à 11:16, Erik Corry <erik.corry at gmail.com> a écrit : > > The proposal needs to be clarified to explain that you are stepping back a number of code points, not units. This implies that you are inspecting the input string as you step backwards. Also it should be explained what to do if there are unpaired surrogates in the input string and inside the lookbehind expression source. Looking at [the proposal][1], there is a Note section (recently added) clarifying that point if needed. The way of counting, and the meaning of the words "character", "code point" and "code unit", are the same as in ES2015; there is really nothing new here. See [2][] for details. If anything needs to be clarified e.g. regarding unpaired surrogates, it is not specific to lookbehind, but applies to the whole regexp semantics. [1]: http://www.akenotsuki.com/misc/srell/lookbehind_proposal.html [2]: http://www.ecma-international.org/ecma-262/6.0/#sec-pattern-semantics