From 862c2589bbd83c2015503d19ccfd240378412714 Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Wed, 23 Oct 2019 10:33:28 -0700 Subject: [PATCH] Normative: Account for for-await in [[Async]] (#133) Closes #132 Note that `await` in module contexts is always a keyword, so the "Contains `await`" static semantics in this patch will never match an `await` identifier. --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 419542a..4fa2a1e 100644 --- a/spec.html +++ b/spec.html @@ -664,7 +664,7 @@

ParseModule ( _sourceText_, _realm_, _hostDefined_ )

1. Append _ee_ to _starExportEntries_. 1. Else, 1. Append _ee_ to _indirectExportEntries_. - 1. Let _async_ be _body_ Contains |AwaitExpression|. + 1. Let _async_ be _body_ Contains `await`. 1. Return Source Text Module Record { [[Realm]]: _realm_, [[Environment]]: *undefined*, [[Namespace]]: *undefined*, [[Async]]: _async_, [[AsyncEvaluating]]: *false*, [[TopLevelCapability]]: *undefined*, [[AsyncParentModules]]: *undefined*, [[PendingAsyncDependencies]]: *undefined*, [[Status]]: `"unlinked"`, [[EvaluationError]]: *undefined*, [[HostDefined]]: _hostDefined_, [[ECMAScriptCode]]: _body_, [[RequestedModules]]: _requestedModules_, [[ImportEntries]]: _importEntries_, [[LocalExportEntries]]: _localExportEntries_, [[IndirectExportEntries]]: _indirectExportEntries_, [[StarExportEntries]]: _starExportEntries_, [[DFSIndex]]: *undefined*, [[DFSAncestorIndex]]: *undefined* }.