Thanks guys.
2017-11-24 10:20 GMT-02:00 Michał Wadas <[email protected]>: > It would break backwards compatibility, so it's absolute no-go. > > Adding new function with such behaviour is unlikely, because escape is > defined in Annex B - and Annex B is effectively "deprecated but needs to be > there for backwards compatibility". "Use encodeURI or encodeURIComponent > instead" (MDN). > > And I agree with T.J. Crowder - it's easily implementable in user land as > single-line arrow function and it's very specific use case. > > On Fri, Nov 24, 2017 at 12:38 PM, Renan Bastos <[email protected]> > wrote: >> >> Hey guys, >> >> I communicate that when we go use the escape to object JSON it don't >> escape correctly. >> So I think we should add this suggestion. >> >> const obj2 = {"name": "NodeJS", "version": "all"}; >> console.log(escape(obj)); //%5Bobject%20Object%5D >> >> It needs to do this: >> >> const obj = {"name": "NodeJS", "version": "all"}; >> console.log(escape(obj)); >> //%7B%22name%22%3A%22NodeJS%22%2C%22version%22%3A%22all%22%7D >> >> As this we will reduce a step to escape. >> >> Wthat's you think about? >> I make myself available to do this. >> >> Now gotcha? >> >> 2017-11-24 7:52 GMT-02:00 Michael Rosefield <[email protected]>: >> > I think I can speak for the rest of us when I say: I really am not sure >> > what >> > you're trying to say, here. Could you provide some examples? >> > >> > On Thu, 23 Nov 2017 at 15:44 Renan Bastos <[email protected]> >> > wrote: >> >> >> >> Hello, >> >> >> >> Guys, I have thinked about one this title. So, I suggestion to we >> >> change the form of to escape one Object JSON. >> >> Today we have that to make this converting JSON to String, but I >> >> thought more interesting the function native did it. >> >> What you think about? >> >> >> >> Att, >> >> See ya. >> >> @renanbastos93 >> >> www.renanbastos.com.br >> >> _______________________________________________ >> >> es-discuss mailing list >> >> [email protected] >> >> https://mail.mozilla.org/listinfo/es-discuss >> _______________________________________________ >> es-discuss mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/es-discuss > > _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

