This translation is incomplete. Please help translate this article from English
已废弃 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.
Cast a C integer to a boolean
JS::Value without any type checking or error handling.
jsval BOOLEAN_TO_JSVAL(bool b);
||C integer value to be converted to a boolean
BOOLEAN_TO_JSVAL converts a
b, to a boolean
false, the result is
true, the result is