You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While debugging unit tests that use multiple comms vats (e.g. test-message-patterns.js), it would be nice to make the two comms vats use different number ranges when allocating their remote object/promise IDs, so the wire messages are easier to distinguish. We can accomplish this by changing state.js to start from an ID provided in vatParameters (with a suitable default when it is not provided), but currently vatParameters don't make it into a comms vat, because the setup() form of vat creation does not include it.
The task is to change src/kernel/vatManager/manager-local.js to call setup(syscall, state, helpers, vatPowers, vatParameters) instead of the current setup(syscall, state, helpers, vatPowers).
Then, change the comms vat to pass a configuration value in from vatParameters into the state initialization code.
The text was updated successfully, but these errors were encountered:
What is the Problem Being Solved?
While debugging unit tests that use multiple comms vats (e.g.
test-message-patterns.js
), it would be nice to make the two comms vats use different number ranges when allocating their remote object/promise IDs, so the wire messages are easier to distinguish. We can accomplish this by changingstate.js
to start from an ID provided invatParameters
(with a suitable default when it is not provided), but currentlyvatParameters
don't make it into a comms vat, because thesetup()
form of vat creation does not include it.The task is to change
src/kernel/vatManager/manager-local.js
to callsetup(syscall, state, helpers, vatPowers, vatParameters)
instead of the currentsetup(syscall, state, helpers, vatPowers)
.Then, change the comms vat to pass a configuration value in from
vatParameters
into the state initialization code.The text was updated successfully, but these errors were encountered: