This is an internal type used by the interpreter for processing expression evaluation results. It cannot be stored as an object property.
A completion happens when a statement is evaluated and completes normally. A completion can involve a value and may still be a normal completion.
Abrupt completions are triggered by break, continue, and return statements, which are all classified as program steps that may redirect the flow of control. This may cause sections of code to be skipped or repeated. In the case of a return, it may prematurely exit a function.
In the set of ECMA-defined reserved words, there is evidence that new flow control changes may be introduced and therefore other completion type values may be added later.
The set of completion type values are summarized in this table:
| See also: | break, continue, Identifier resolution, return, Scope chain, Type |
| Prev | Home | Next |
| Compatibility strategies | Up | Compliance |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||