JS_IsStopIteration

This is an archived page. It's not actively maintained.

This article covers features introduced in SpiderMonkey 31

Determine whether the value is a StopIteration exception or not.

Syntax

// Added in SpiderMonkey 42
bool
JS_IsStopIteration(JS::Value v);

// Obsolete since SpiderMonkey 42
bool
JS_IsStopIteration(jsval v);
Name Type Description
v JS::Value The value to check.

Description

JS_IsStopIteration returns true if v is StopIteration, otherwise false.

See Also