Get the empty string as a value of type JS::Value.

Syntax

// Added in SpiderMonkey 42
JS::Value
JS_GetEmptyStringValue(JSContext *cx);

// Obsolete since SpiderMonkey 42
jsval
JS_GetEmptyStringValue(JSContext *cx);
Name Type Description
cx JSContext * A context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.

Description

JS_GetEmptyStringValue returns the empty string as a JS::Value.

See Also