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