Re: Re: Look-behind proposal in trouble

2015-11-19 Thread Yang Guo
The experimental implementation [0] in V8 landed a few days ago and is included in the latest Canary build (49.0.2568.0 and later). You can test it after enabling it with the command line flag --js-flags="--harmony-regexp-lookbehind". Apparently the port to SpiderMonkey is already underway [1].

Re: Backward running version look-behinds (Re: Look-behind proposal in trouble)

2015-11-19 Thread Claude Pache
> Le 19 nov. 2015 à 20:17, Nozomu Katō a écrit : > > On Thu, 19 Nov 2015 09:04:41 +0100, Yang Guo wrote: >> This implementation supports variable length lookbehind similar to .NET's >> semantics. It does so by emitting code to read backwards inside the >> lookbehind. The

Backward running version look-behinds (Re: Look-behind proposal in trouble)

2015-11-19 Thread Nozomu Katō
On Thu, 19 Nov 2015 09:04:41 +0100, Yang Guo wrote: > This implementation supports variable length lookbehind similar to .NET's > semantics. It does so by emitting code to read backwards inside the > lookbehind. The size of the change without platform ports and tests is > about 600 lines. When

Re: Re: Backward running version look-behinds (Re: Look-behind proposal in trouble)

2015-11-19 Thread Yang Guo
FWIW this is precisely how it works in .NET as well (reverse order of capture and back reference). While it might be surprising, it makes sense with the backward read direction in mind. I'm not fond of the idea of throwing syntax error if the back reference is to the right of the capture inside a

Re: resolve()/reject() on Promise subclasses and @@species

2015-11-19 Thread C. Scott Ananian
On Wed, Nov 18, 2015 at 6:50 PM, Domenic Denicola wrote: > All uses of @@species are to be removed from Promise.race and Promise.all. > The committee achieved consensus on this, without you. > To be precise, steps 3-5 are to be removed entirely from Promise.all (25.4.4.1) and