Skip to content
This repository was archived by the owner on May 11, 2020. It is now read-only.

Commit b84fb2b

Browse files
author
Silas Davis
committed
Expose access to Ops to avoid stringly typing downstream
Signed-off-by: Silas Davis <[email protected]>
1 parent 01d3d33 commit b84fb2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wasm/operators/op.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,7 @@ func New(code byte) (Op, error) {
8585
}
8686
return op, nil
8787
}
88+
89+
func Get(opcode byte) Op {
90+
return ops[opcode]
91+
}

0 commit comments

Comments
 (0)