MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See for all notifications.

Your Search Results


    Cast a C integer to a boolean JS::Value without any type checking or error handling.


    BOOLEAN_TO_JSVAL(bool b);
    Name Type Description
    b bool C integer value to be converted to a boolean jsval.


    BOOLEAN_TO_JSVAL converts a bool argument, b, to a boolean jsval.

    If b is false, the result is JSVAL_FALSE.

    If b is true, the result is JSVAL_TRUE.

    See Also

    Document Tags and Contributors

    Contributors to this page: fscholz, Nickolay, Callek, arai, MMondor, Dria, Jorend
    Last updated by: arai,
    Hide Sidebar