From e19db45f6b6a798f61fea6d0427a0727a75510a4 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Wed, 15 Feb 2023 20:08:53 -0500 Subject: [PATCH] fixup: Insert "and async functions" into note re execution contexts --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index f23c351960b..fa699240ccc 100644 --- a/spec.html +++ b/spec.html @@ -11746,7 +11746,7 @@

Execution Contexts

Execution Context Stack

An agent's execution context stack is used to organize some or all of the agent's execution contexts. The running execution context is always the top element of this stack.

Adding and removing always happens at the “top” of the execution context stack. When an execution context is added, it becomes the topmost (i.e., the running execution context), and when it is later removed, the execution context “below” it becomes topmost again.

- In the absense of generators, every execution context that is pushed onto the stack is new, and when it's removed from the stack it can be discarded. With generators, some execution contexts outlive their time on the stack, exist for a while outside the stack, and then later are pushed onto the stack again. + In the absence of generators and async functions, every execution context that is pushed onto the stack is new, and when it's removed from the stack it can be discarded. With generators and async functions, some execution contexts outlive their time on the stack, exist for a while outside the stack, and then later are pushed onto the stack again.