JSVal JS_BooleanToValue()

Description

This function stores a Boolean return value in a jsval structure.

Arguments

JSBool bv

  • The bv argument is a Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.

Returns

A JSVal structure that contains the Boolean value that passes to the function as an argument.