JS::Int32Value

This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 24

Convert a C signed 32-bit integer of type int32_t to a JS::Value.

Syntax

JS::Value
JS::Int32Value(int32_t i32)
Name Type Description
i32 int32_t C integer to convert.

Description

JS::Int32Value converts a C signed 32-bit integer of type int32_t to JS::Value, the type of JavaScript values.

The result is an integer JS::Value.

See Also

Document Tags and Contributors

 Contributors to this page: rolfedh, arai
 Last updated by: rolfedh,