Skip to content

Commit 039a89a

Browse files
committed
Add Assert
1 parent 98ca969 commit 039a89a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/System.Private.CoreLib/src/System/Reflection/Emit/RuntimeAssemblyBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ internal RuntimeAssemblyBuilder(AssemblyName name,
9191
AssemblyLoadContext assemblyLoadContext,
9292
IEnumerable<CustomAttributeBuilder>? assemblyAttributes)
9393
{
94+
Debug.Assert(name is not null);
95+
9496
_access = access;
9597

9698
_internalAssembly = CreateDynamicAssembly(assemblyLoadContext, name, access);

0 commit comments

Comments
 (0)