Skip to content
Advertisement

Tag: specifications

“Running execution context” in await expression promise handlers abstract closure according to the Spec

I wanted to understand the internal mechanisms of a JavaScript engine for asynchronous functions, so I checked the Spec. For the rest of this question, I will refer to the linked version of the specification. Section 6.2.3.1 describes this. Basically, a promise is created which is resolved to the expression that is awaited. The promise is then added resolving handlers

Advertisement