@@ -1481,7 +1481,7 @@ WebAssembly Module Records have the following methods:
14811481 1. If |resolution|.\[[Module]] is a WebAssembly Module Record,
14821482 1. Let |resolutionInstance| be |resolution|.\[[Module]] .\[[Instance]] .
14831483 1. If |resolutionInstance| is ~empty~ then,
1484- 1. Throw a {ReferenceError} .
1484+ 1. Throw a {LinkError} exception .
14851485 1. Let |resolutionModule| be |resolution|.\[[Module]] .\[[ModuleSource]] .\[[Module]] .
14861486 1. Let |resolutionName| be |resolution|.\[[BindingName]] .
14871487 1. Let |externval| be [=instance_export=] (|resolutionInstance|, |resolutionName|).
@@ -1534,7 +1534,7 @@ WebAssembly Module Records have the following methods:
15341534 1. Let |global_value| be [=global_read=] (|store|, |globaladdr|).
15351535 1. If |globaltype| is not [=v128=] ,
15361536 1. Note: The condition above leaves unsupported JS values as uninitialized in TDZ and therefore as a reference error on
1537- access. When integrating with shared globals, they may be excluded here similarly to v128 above.
1537+ access. When integrating with shared globals, they may be excluded here similarly to v128 above.
15381538 1. Perform [=!=] |record|.\[[Environment]] .InitializeBinding(|name|, [=ToJSValue=] (|global_value|)).
15391539 1. If |mut| is [=var=] , then associate all future mutations of |globaladdr| with the ECMA-262 binding record for |name| in
15401540 |record|.\[[Environment]] , such that |record|.\[[Environment]] .GetBindingValue(|resolution|.\[[BindingName]] , true)
0 commit comments