1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 05:13:30 +03:00

wasm: add comment to clarify lazy initialization

This commit is contained in:
@0xb17bea125 2022-08-23 17:46:00 +09:00
parent db8021c931
commit cd037c514d
No known key found for this signature in database
GPG Key ID: 1A292BFDF101D448

View File

@ -62,6 +62,8 @@ func (m instructionMap) MapScalar(s scalar.S) (scalar.S, error) {
var instrMap = instructionMap{
0x00: {mnemonic: "unreachable"},
0x01: {mnemonic: "nop"},
// for the following 3 entries, `f` will be set in decodeWASM() to break initialization reference cycle.
0x02: {mnemonic: "block"},
0x03: {mnemonic: "loop"},
0x04: {mnemonic: "if"},