diff options
Diffstat (limited to 'src/validator.cc')
-rw-r--r-- | src/validator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validator.cc b/src/validator.cc index 77fcabda..85715b47 100644 --- a/src/validator.cc +++ b/src/validator.cc @@ -892,7 +892,7 @@ void Validator::CheckImport(const Location* loc, const Import* import) { case ExternalKind::Global: { auto* global_import = cast<GlobalImport>(import); if (global_import->global.mutable_ && - !options_->features.threads_enabled()) { + !options_->features.mutable_globals_enabled()) { PrintError(loc, "mutable globals cannot be imported"); } ++num_imported_globals_; @@ -919,7 +919,7 @@ void Validator::CheckExport(const Location* loc, const Export* export_) { case ExternalKind::Global: { const Global* global; if (Succeeded(CheckGlobalVar(&export_->var, &global, nullptr))) { - if (global->mutable_ && !options_->features.threads_enabled()) { + if (global->mutable_ && !options_->features.mutable_globals_enabled()) { PrintError(&export_->var.loc, "mutable globals cannot be exported"); } } |