Skip to content

Commit 78b199b

Browse files
authored
Clarify immutability (#24)
It took me a few iterations of reading the spec to figure out that bytes are indeed immutable, and not mutable, as implied by the last note of HostLoadImportedModule. Similarly, in CreateBytesModule it's not immediately obvious that the "immutable" descriptor applies to SharedArrayBuffer as well. As an unrelated bit of cleanup, the spec metadata is updated to match the current stage of the proposal.
1 parent 3deb789 commit 78b199b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec.emu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<script src="./spec.js"></script>
66
<pre class="metadata">
77
title: Proposal Import Bytes
8-
stage: 0
8+
stage: 2
99
contributors: Steven, Guy Bedford
1010
</pre>
1111
<emu-intro id="intro">
@@ -75,7 +75,7 @@ contributors: Steven, Guy Bedford
7575
</emu-note>
7676

7777
<emu-note>
78-
<p>All of the import statements in the module graph that address the same JSON <ins>or bytes </ins>module may evaluate to the same mutable object.</p>
78+
<p>All of the import statements in the module graph that address the same JSON <ins>or bytes </ins>module may evaluate to the same <del>mutable </del>object.</p>
7979
</emu-note>
8080
</emu-clause>
8181

@@ -114,7 +114,7 @@ contributors: Steven, Guy Bedford
114114
<h1>
115115
<ins>
116116
CreateBytesModule (
117-
_arrayBuffer_: an immutable ArrayBuffer or a SharedArrayBuffer
117+
_arrayBuffer_: an immutable ArrayBuffer or an immutable SharedArrayBuffer
118118
): a Synthetic Module Record
119119
</ins>
120120
</h1>

0 commit comments

Comments
 (0)