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
- MXR ID Search for JS_IsStopIteration
- JS_ThrowStopIteration
- bug 918170
- bug 1184564 -- Changed jsval to JS::Value