-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make krefOf/extractSingleSlot more picky
When krefOf() is called as part of kmarshal.serialize, marshal will only give it things that are 'remotable' (Promises and the Far objects created by kslot()). When krefOf() is called by kernel code (as part of extractSingleSlot() or the vat-comms equivalent), it ought to throw if 'obj' is not one of the Far objects created by our kslot(). This also changes extractSingleSlot() to be just as precise as the old implementation, to be safe against future changes to krefOf() or the marshalling format (e.g. #2069 auxdata adding additional properties).
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters