Thanks, Ben. It's not exactly isinf(), but isnan(). And yes, it works. Much obliged!
On Wednesday, February 26, 2014 8:19:01 PM UTC+2, Ben Noordhuis wrote: > > On Wed, Feb 26, 2014 at 7:09 AM, Danny Dorfman > <[email protected]<javascript:>> > wrote: > > Is there a simple way of testing a Handle<Value> against NaN? > > ( I tried using IsNumber, and I get true, but I need to be more specific > ). > > bool is_nan = value->IsNumber() && > ::isinf(value->ToNumber()->Value()); // Like that? > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" 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/groups/opt_out.
