Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 8ea5eaa76dd54dba2ef13c61a64c5fec29f1f507..17666b2d2a8954e69216732b113bb482fac78a14 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1846,6 +1846,13 @@ class WasmInstanceBuilder { |
return; |
} |
} |
+ |
+ if (module_->origin == kWasmOrigin) { |
+ v8::Maybe<bool> success = JSReceiver::SetIntegrityLevel( |
+ exports_object, FROZEN, Object::DONT_THROW); |
+ DCHECK(success.FromMaybe(false)); |
+ USE(success); |
+ } |
} |
void InitializeTables(Handle<FixedArray> code_table, |