Require func_type (not func) for func import. (#79)

This commit is contained in:
Sergey Pepyakin 2018-03-22 17:49:30 +03:00 committed by GitHub
parent 654426b147
commit 86bbd96a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ pub fn validate_module(module: Module) -> Result<ValidatedModule, Error> {
for import in import_section.entries() {
match *import.external() {
External::Function(function_type_index) => {
context.require_function(function_type_index)?;
context.require_function_type(function_type_index)?;
}
External::Global(ref global_type) => {
if global_type.is_mutable() {