Require func_type (not func) for func import.

This commit is contained in:
Sergey Pepyakin 2018-03-22 15:49:55 +03:00
parent 654426b147
commit 3acf79c9a2
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() {