Implement RegExp lookbehind
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
Webcompat Priority | P1 |
People
(Reporter: evilpie, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete, parity-chrome, Whiteboard: [DocArea=JS])
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Reporter | ||
Comment 3•9 years ago
|
||
Reporter | ||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 6•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 8•9 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 13•7 years ago
|
||
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Updated•6 years ago
|
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•5 years ago
|
Updated•5 years ago
|
Comment 19•5 years ago
|
||
Let me change this. The issue for https://webcompat.com/issues/39461 was with Bug 1362154 (named groups).
Comment 21•5 years ago
|
||
:iain, does your work on named groups implement this?
Comment 22•5 years ago
|
||
Yes. My work is to re-sync our irregexp implementation with the one that is used in V8. When I'm done, our regexps should be at feature parity with Chrome.
Comment 23•5 years ago
|
||
:iain are you still working on this? Your post 4 months ago gave us some hope, but then it went quiet again...
Lookbehind assertions are one of the few ES2018 features that cannot be polyfilled.
It's been almost 3 years since this was added to Node and V8...
At least Firefox has a bug task for it that shows some signs of life; Safari does not even have that. And because of Apple's lock-down on browser engines on iOS, users cannot even switch to Chrome/Opera/Edge to get it.
Comment 24•5 years ago
|
||
I've been working away on this behind the scenes. There's still work to be done to clean up some of the code, but all the tests are passing. I'll be starting to put some of the initial patches up for review today.
Please track Bug 1367105 to see progress.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 29•5 years ago
|
||
Fixed by the landing of bug 1634135.
Comment 30•5 years ago
|
||
Congratulations! This must have been super hard to accomplish. I really appreciate it.
Comment 31•4 years ago
|
||
Developer docs:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/78#JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Assertions
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
Comment 32•4 years ago
|
||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#browser_compatibility states that Firefox for Android doesn't support lookbehind.
Is that correct? There's a specific bug for Fenix (the asterisk on the page sent me here)?
Thanks!
(In reply to Giorgio Maone [:mao] from comment #38)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#browser_compatibility states that Firefox for Android doesn't support lookbehind.
Is that correct? There's a specific bug for Fenix (the asterisk on the page sent me here)?
Thanks!
No, it passes the test: kangax.github.io/compat-table/es2016plus
Looking at BCD, it seems it was missed in https://github.com/mdn/browser-compat-data/pull/6201 because there was no version 78 on Android. I'll open a PR to fix xit.
It's actually fixed by https://github.com/mdn/browser-compat-data/pull/7658 but the corresponding MDN document is not updated yet. I guess it'll be fixed with the next BCD release.
Updated•4 years ago
|
Updated•2 years ago
|
Description
•