This article covers features introduced in SpiderMonkey 17

Determines whether or not the specified JSString is an external string (that is, a string created by calling JS_NewExternalString rather than JS_NewExternalStringWithClosure).

Syntax

bool
JS_IsExternalString(JSString *str);
Name Type Description
str JSString * The string to check.

Description

JS_IsExternalString returns true if the string is an external string; otherwise it's false.

See Also