@@ -1278,8 +1278,8 @@ To <dfn export>parse a WebAssembly module</dfn> given a an {{ArrayBuffer}} |byte
1278
1278
\[[RequestedModules]] : |requestedModules|,
1279
1279
\[[LoadedModules]] : « »,
1280
1280
\[[CycleRoot]] : ~empty~,
1281
- \[[HasTLA]] : true ,
1282
- \[[AsyncEvaluation]] : true ,
1281
+ \[[HasTLA]] : false ,
1282
+ \[[AsyncEvaluation]] : false ,
1283
1283
\[[TopLevelCapability]] : ~empty~
1284
1284
\[[AsyncParentModules]] : « »,
1285
1285
\[[PendingAsyncDependencies]] : ~empty~,
@@ -1334,9 +1334,8 @@ WebAssembly Module Records have the following methods:
1334
1334
<div algorithm=ExecuteModule>
1335
1335
1336
1336
<h3 id="module-execution">ExecuteModule ( [ |promiseCapability| ] ) Concrete Method</h3>
1337
- 1. Assert: |promiseCapability| was provided.
1337
+ 1. Assert: |promiseCapability| was not provided.
1338
1338
1. Let |record| be this WebAssembly Module Record.
1339
- 1. Assert: |record|.\[[HasTLA]] is true.
1340
1339
1. Let |module| be |record|.\[[WebAssemblyModule]] .
1341
1340
1. Let |imports| be a new, empty [=map=] .
1342
1341
1. For each (|importedModuleName|, |name|, <var ignore> type</var> ) in [=module_imports=] (|module|.\[[Module]] ),
@@ -1350,13 +1349,9 @@ WebAssembly Module Records have the following methods:
1350
1349
1. For each |importedName| → |importedValue| of |value|,
1351
1350
1. Perform ! [$CreateDataPropertyOrThrow$] (|moduleImportsObject|, |importedName|, |importedValue|).
1352
1351
1. Perform ! [$CreateDataPropertyOrThrow$] (|importsObject|, |key|, |moduleImportsObject|).
1353
- 1. [=Asynchronously instantiate a WebAssembly module=] |module| with imports |importsObject| and let |instancePromise| be the result.
1354
- 1. [=Upon fulfillment=] of |instancePromise| with value |instance|:
1355
- 1. For each |name| in the [=export name list=] of |record|,
1356
- 1. Perform ! |record|.\[[Environment]] .InitializeBinding(|name|, ! Get(|instance|.\[[Exports]] , |name|)).
1357
- 1. Perform ! [=Call=] (|promiseCapability|.\[[Resolve]] , undefined, « undefined »).
1358
- 1. [=Upon rejection=] of |instancePromise| with reason |r|:
1359
- 1. Perform ! [=Call=] (|promiseCapability|.\[[Reject]] , undefined, « |r| »).
1352
+ 1. Let |instance| be the result of [=Instantiate a WebAssembly module|instantiating the WebAssembly module=] |module| with imports |importsObject|.
1353
+ 1. For each |name| in the [=export name list=] of |record|,
1354
+ 1. Perform ! |record|.\[[Environment]] .InitializeBinding(|name|, ! Get(|instance|.\[[Exports]] , |name|)).
1360
1355
1361
1356
Note: exported bindings are left uninitialized, i.e., in TDZ.
1362
1357
0 commit comments