Sha256: b099f95139ba7ab6a278a6efaaad0e47f666685b7ffb13950521e1b8a18ca2b0
Contents?: true
Size: 908 Bytes
Versions: 8
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true require_relative "wasmtime/version" # Tries to require the extension for the given Ruby version first begin RUBY_VERSION =~ /(\d+\.\d+)/ require "wasmtime/#{Regexp.last_match(1)}/ext" rescue LoadError require "wasmtime/ext" end module Wasmtime class Error < StandardError; end class ConversionError < Error; end class Trap < Error STACK_OVERFLOW = :stack_overflow HEAP_MISALIGNED = :heap_misaligned TABLE_OUT_OF_BOUNDS = :table_out_of_bounds INDIRECT_CALL_TO_NULL = :indirect_call_to_null BAD_SIGNATURE = :bad_signature INTEGER_OVERFLOW = :integer_overflow INTEGER_DIVISION_BY_ZERO = :integer_division_by_zero BAD_CONVERSION_TO_INTEGER = :bad_conversion_to_integer UNREACHABLE_CODE_REACHED = :unreachable_code_reached INTERRUPT = :interrupt ALWAYS_TRAP_ADAPTER = :always_trap_adapter UNKNOWN = :unknown end end
Version data entries
8 entries across 8 versions & 1 rubygems