Skip to content

Commit 26e6faa

Browse files
Guy Bedfordlittledan
authored andcommitted
fix: source phase reference corrections
1 parent da12157 commit 26e6faa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

document/js-api/index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,15 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
328328

329329
* \[[Module]] : a WebAssembly [=/module=]
330330
* \[[Bytes]] : the source bytes of \[[Module]].
331-
* \[[SourceClassName]] : the string "WebAssembly.Module"
331+
* \[[ModuleSourceClassName]] : the string "WebAssembly.Module"
332332

333333
<div algorithm>
334334
To <dfn>construct a WebAssembly module object</dfn> from a module |module| and source bytes |bytes|, perform the following steps:
335335

336336
1. Let |moduleObject| be a new {{Module}} object.
337337
1. Set |moduleObject|.\[[Module]] to |module|.
338338
1. Set |moduleObject|.\[[Bytes]] to |bytes|.
339-
1. Set |moduleObject|.\[[SourceClassName]] to "WebAssembly.Module".
339+
1. Set |moduleObject|.\[[ModuleSourceClassName]] to "WebAssembly.Module".
340340
1. Return |moduleObject|.
341341
</div>
342342

@@ -551,7 +551,7 @@ interface Module {
551551
</pre>
552552

553553
Per ECMA-262 requirements for source phase import integration, the interface object for {{Module}} must have as its \[[Prototype]] be %AbstractModuleSource%, created as if by ObjectCreate(%AbstractModuleSource%), instead of %ObjectPrototype%.
554-
In addition, the interface prototype object for {{Module}} must have as its \[[Prototype]] %AbstractModuleSource.prototype%, created as if by ObjectCreate(%AbstractModuleSource%), instead of %ObjectPrototype%.
554+
In addition, the interface prototype object for {{Module}} must have as its \[[Prototype]] be %AbstractModuleSource.prototype%, created as if by ObjectCreate(%AbstractModuleSource.prototype%), instead of %ObjectPrototype%.
555555

556556
<div algorithm>
557557
The <dfn>string value of the extern type</dfn> |type| is

0 commit comments

Comments
 (0)