0.3.0
Features
Extension
-
#15 Typed arrays implement the
Enumerable
mixin (@irxground)memory = instance.memory.uint8_view pointer string = "" # Now we can write this more Ruby idiomatic loop: memory.each do |char| break if char == 0 string += char.chr end
-
#9 Implement
instance.exports.respond_to?
to test whether an exported function exists (@irxground)instance = Wasmer::Instance.new(self.bytes) assert instance.exports.respond_to?(:foo)
-
#5 Improve Ruby exception raising (@irxground)
Runtime
- #20 Update Wasmer to 0.5.5 (@Hywan)
- #11 Update Wasmer to 0.4.2 (@Hywan)
- #7 Update Wasmer to 0.4.1 (@Hywan)
Bug/security fixes
-
#8 Handle exported functions that return nothing, aka void functions (@Hywan)
-
#4 Move all symbols inside the
Wasmer
module (@irxground)# Read from the `Wasmer` module. instance = Wasmer::Instance.new()