Commit aa0f575b authored by Kenton Varda's avatar Kenton Varda

Merge pull request #214 from jparyani/fix-anypointer-capability

Allow setting dynamic AnyPointer fields with a capability
parents 6cf2b5a7 1e463655
......@@ -735,6 +735,7 @@ void DynamicStruct::Builder::adopt(StructSchema::Field field, Orphan<DynamicValu
orphan.getType() == DynamicValue::LIST ||
orphan.getType() == DynamicValue::TEXT ||
orphan.getType() == DynamicValue::DATA ||
orphan.getType() == DynamicValue::CAPABILITY ||
orphan.getType() == DynamicValue::ANY_POINTER,
"Value type mismatch.") {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment