Thanks for sharing! 2016년 6월 3일 금요일 오후 7시 1분 1초 UTC+9, Yang Guo 님의 말: > > Yup. What Ben said. > > On Fri, Jun 3, 2016 at 11:38 AM Ben Noordhuis <in...@bnoordhuis.nl > <javascript:>> wrote: > >> On Fri, Jun 3, 2016 at 7:34 AM, Yun Ji Kim <pill...@gmail.com >> <javascript:>> wrote: >> > Does v8 support constant folding in regular expression? >> > >> > /foo/.exec("foo"); shouldn't be folded to "foo"? >> >> I don't think V8 does that or even can. RegExp.prototype.exec can be >> monkey-patched by user code and the default implementation has side >> effects like updating RegExp.$_. >> >> -- >> -- >> v8-dev mailing list >> v8-...@googlegroups.com <javascript:> >> http://groups.google.com/group/v8-dev >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-dev+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> >
-- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.