I have already wrapped Math functions. But impossible to wrap +,- and etc by js framework. Need check it in v8 engine. I think its possible to add #ifdef STRICT_MATH_BUILD blocks for 'plus', 'minus', 'lessthat', 'larger' that native operations? I debugging and modify big project for now, with a lot of geometry, and some time is take hours to find NaN or undefined value in one of operartion.
On Monday, December 12, 2016 at 5:16:12 PM UTC+5, Jochen Eisinger wrote: > > Given the many places that are affected by number handling, I'd say this > is not possible. > > Several JS frameworks provide ways to navigate some of the rougher edges > here, have you considered using one that provides the kind of math > guarantees you're looking for? > > On Sun, Dec 11, 2016 at 6:07 AM <[email protected] <javascript:>> > wrote: > >> Is it good idea to make dev build of v8, which will treat not-numeric or >> NaN values in any Math, +, -, *, / ^, and e.t.c. operatons as exception? I >> think its will save a lot of time for js developers. >> Is exists something like that or any one can help to add it? >> >> -- >> -- >> v8-dev mailing list >> [email protected] <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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- v8-dev mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
