This article covers features introduced in SpiderMonkey 24
Create a not-a-number (NaN) floating-point number as a value of type
JS::DoubleNaNValue returns a value of type
JS::Value that represents an IEEE floating-point quiet Not-a-Number (NaN).
The result is an floating-point JS::Value.