pub const VERSION: u16 = 9;Expand description
Format version. Bumped whenever the layout below changes — and only then.
A product built by qjsc links the published quickjs-pure unless it is given a
path, so the reader on the other side of this format can be an older release. Bumping
for a change the old reader could still decode makes every such product refuse to load.
(Widening a text field from UTF-8 to WTF-8 is that kind of change: the framing is
unchanged, and only a blob whose literal holds an unpaired surrogate can be rejected by
an old reader.)
9 added the file name, the optional source text and the module tables. A blob written by 8 still loads its bytecode correctly, but it cannot say which file it came from or what it imports, so it is rejected rather than half-run.