This article covers features introduced in SpiderMonkey 24
Syntax
JS::Value JS::ObjectOrNullValue(JSObject* obj)
| Name | Type | Description |
|---|---|---|
str |
JSObject* |
A pointer to a JSObject or null to convert. |
Description
JS::ObjectValue converts a given JSObject to JS::Value. If the pointer is null, it returns JavaScript null. The conversion always succeeds.
