Skip to content

Commit

Permalink
Replace the junk byte with a fixed 0x00 byte
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewagner committed Oct 20, 2023
1 parent f754b7f commit 12c00e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions design/mvp/Binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ in the explainer.)
```ebnf
import ::= en:<importname'> ed:<externdesc> => (import in ed)
export ::= en:<exportname'> si:<sortidx> ed?:<externdesc>? => (export en si ed?)
importname' ::= <junk> len:<u32> in:<importname> => in (if len = |in|)
exportname' ::= <junk> len:<u32> en:<exportname> => en (if len = |en|)
junk ::= 0x00
| 0x01
importname' ::= 0x00 len:<u32> in:<importname> => in (if len = |in|)
exportname' ::= 0x00 len:<u32> en:<exportname> => en (if len = |en|)
```

Notes:
Expand Down Expand Up @@ -343,8 +341,6 @@ Notes:
* `<valid semver>` is as defined by [https://semver.org](https://semver.org/)
* `<integrity-metadata>` is as defined by the
[SRI](https://www.w3.org/TR/SRI/#dfn-integrity-metadata) spec.
* The `junk` byte is leftover from a previous iteration and will be removed at
the next breaking binary format change.

## Name Section

Expand Down

0 comments on commit 12c00e8

Please sign in to comment.