Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
handle unknown sections
Browse files Browse the repository at this point in the history
  • Loading branch information
mangas committed May 20, 2022
1 parent 1080066 commit ba5922f
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 67 deletions.
Binary file added res/cases/v1/global_section.wasm
Binary file not shown.
8 changes: 1 addition & 7 deletions src/builder/table.rs
Expand Up @@ -3,7 +3,7 @@ use crate::elements;
use alloc::vec::Vec;

/// Table definition
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Default)]
pub struct TableDefinition {
/// Minimum length
pub min: u32,
Expand Down Expand Up @@ -79,9 +79,3 @@ where
self.callback.invoke(self.table)
}
}

impl Default for TableDefinition {
fn default() -> Self {
TableDefinition { min: 0, max: None, elements: Vec::new() }
}
}

0 comments on commit ba5922f

Please sign in to comment.