Open ljharb opened 11 months ago
Thanks; that’s a spec bug that we’ll fix but doesnt affect semantics obv.
Sure, we can discuss it in plenary - hopefully either outcome can still allow for advancement in that meeting, given that the effective behavior is the same.
The changing nature of whitespace holds for regexes themselves as well as the trim methods, none of which have a note - what do you suggest?
Sure, we can discuss it in plenary - hopefully either outcome can still allow for advancement in that meeting, given that the effective behavior is the same.
:+1:
The changing nature of whitespace holds for regexes themselves as well as the trim methods, none of which have a note - what do you suggest?
I think it's more obvious for those cases, especially when it comes to \s and \S in patterns... that the behavior of something like RegExp.escape
may not be stable over time is surprising. But I agree with you that it is also true of other operations, and have opened https://github.com/tc39/ecma262/issues/3331 accordingly. This proposal can either track that or try to anticipate it; either approach seems fine to me.
It will be quite stable in terms of "how it behaves in regexes" - nobody should be noticing or caring about the stability of the string it produces otherwise :-)
@ljharb Wouldn't that be nice? Unfortunately, we both know how this job goes. If it can be observed, someone will observe it, and it must eventually become stable and compatible across engines.
@michaelficarra that is true, and yet we've changed the whitespace value in JS multiple times and the only place it seemed to break people is in my projects' test cases :-p
@gibson042 filed #78 to address the first bullet point.
Consensus today on character escapes and stage 2.7.
Help writing test262 tests is much appreciated :-)
I wrote something https://github.com/tc39/test262/pull/4123
This proposal reached stage 3 today. https://twitter.com/ljharb/status/1817996611462500574
Congratulations on getting to Stage 3. Well deserved. 👍
Stage 4
~Stage 3~
~Stage 2.7~
55
52
~Stage 2~
~Stage 1~