Skip to content

0.3.0

Compare
Choose a tag to compare
@Hywan Hywan released this 16 Jul 09:07
· 199 commits to master since this release

Features

Extension

  • #19 Add the Memory.grow method (@Hywan)

  • #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

Bug/security fixes

  • #16 Update Rutie (@edvakf)

  • #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()

Documentation

  • #14 Improve documentation (@denniscollective)
  • #12 Add the greet eaxmple (@Hywan)

Chore

  • #13 Use assert_nil instead of assert_equal_nil in tests (@Hywan)
  • #10 Set up Bors (@Hywan)