Obsolete since JSAPI 42
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Casts a pointer to a GC-allocated jsdouble to type jsval.
Please use JS::DoubleValue instead in SpiderMonkey 45 or later.
Syntax
jsval DOUBLE_TO_JSVAL(double d);
| Name | Type | Description | 
|---|---|---|
| d | double | C double to convert to a jsval. | 
Description
DOUBLE_TO_JSVAL is the inverse of JS::ToNumber.
To convert a C float, double to type JS::Value, use JS_NumberValue instead.