archives

« Bugzilla Issues Index

#4328 — Remove comments about stack-unlike behaviour of execution context stack


Section 8.3 Execution Contexts states

| Transition of the running execution context status among execution
| contexts usually occurs in stack-like last-in/first-out manner.
| However, some ECMAScript features require non-LIFO transitions of the
| running execution context.

In fact, all transitions are stack-like, even those of generators. The "usually" and the second sentence should be removed.

If generators should be mentioned, I'd recommend to change the sentence

| At some later time a suspended execution context may again become the
| running execution context and continue evaluating its code at the
| point where it had previously been suspended.

to something like:

Usually, an execution context will destroyed after being suspended, however some ECMAScript features require execution contexts that may again become the running execution context, which would then continue evaluating its code at the point where it had previously been suspended.