We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

STRING_TO_JSVAL

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 specified JS string to a JS value.

Please use JS::StringValue instead in SpiderMonkey 45 or later.

Syntax

jsval
STRING_TO_JSVAL(JSString *str)
Name Type Description
obj JSString * A pointer to a JS string to convert to a jsval.

Description

STRING_TO_JSVAL casts a given JSString * to jsval. str must be a non-null pointer of type JSString *. The conversion always succeeds.

See Also

Document Tags and Contributors

Contributors to this page: arai, fscholz, ethertank, Jorend, alecananian
Last updated by: arai,