-
Notifications
You must be signed in to change notification settings - Fork 150
Conversation
ValueTypeI32 ValueType = 0x7f | ||
ValueTypeI64 ValueType = 0x7e | ||
ValueTypeF32 ValueType = 0x7d | ||
ValueTypeF64 ValueType = 0x7c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These constants are obtained from the specification: https://webassembly.github.io/spec/core/binary/types.html#binary-valtype
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo a few nitpicks.
wasm/read.go
Outdated
@@ -35,6 +35,17 @@ func readBytes(r io.Reader, n int) ([]byte, error) { | |||
return nil, io.ErrUnexpectedEOF | |||
} | |||
|
|||
func WriteByte(w io.Writer, b byte) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps put it in a new wasm/write.go
file?
also, perhaps:
func WriteByte(w io.Writer, b byte) error { | |
func writeByte(w io.Writer, b byte) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ReadByte
method is used in disasm
package. For the sake of symmetry, I exposed it too. and maybe it will be used in later fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
- Coverage 69.61% 69.54% -0.07%
==========================================
Files 43 43
Lines 4959 4974 +15
==========================================
+ Hits 3452 3459 +7
- Misses 1222 1226 +4
- Partials 285 289 +4
Continue to review full report at Codecov.
|
No description provided.