Skip to content

Commit

Permalink
fix: add "TODO unimplemented"s (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights authored Aug 30, 2020
1 parent 6b97ae8 commit 7795f93
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/SwingSet/src/kernel/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export default function buildKernel(kernelEndowments, kernelOptions = {}) {
await deliverToTarget(kp.slot, msg);
} else if (kp.state === 'redirected') {
// await deliverToTarget(kp.redirectTarget, msg); // probably correct
// TODO unimplemented
throw new Error('not implemented yet');
} else if (kp.state === 'fulfilledToData') {
if (msg.result) {
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/src/kernel/vatManager/deliver.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function makeDeliver(tools, dispatch) {
case 'fulfilledToPresence':
return doProcess(['notifyFulfillToPresence', vpid, vp.slot], errmsg);
case 'redirected':
// TODO unimplemented
throw new Error('not implemented yet');
case 'fulfilledToData':
return doProcess(['notifyFulfillToData', vpid, vp.data], errmsg);
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/src/kernel/vatManager/nodeWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export function makeNodeWorkerVatManagerFactory(tools) {
}

function replayTranscript() {
// TODO unimplemented
throw Error(`replayTranscript not yet implemented`);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function doNotify(vpid, vp) {
case 'fulfilledToPresence':
return doProcess(['notifyFulfillToPresence', vpid, vp.slot], errmsg);
case 'redirected':
// TODO unimplemented
throw new Error('not implemented yet');
case 'fulfilledToData':
return doProcess(['notifyFulfillToData', vpid, vp.data], errmsg);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function doNotify(vpid, vp) {
case 'fulfilledToPresence':
return doProcess(['notifyFulfillToPresence', vpid, vp.slot], errmsg);
case 'redirected':
// TODO unimplemented
throw new Error('not implemented yet');
case 'fulfilledToData':
return doProcess(['notifyFulfillToData', vpid, vp.data], errmsg);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export function makeNodeSubprocessFactory(tools) {
}

function replayTranscript() {
// TODO unimplemented
throw Error(`replayTranscript not yet implemented`);
}

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/src/kernel/vatTranslator.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function makeTranslateKernelDeliveryToVatDelivery(vatID, kernelKeeper) {
vp.slot = mapKernelSlotToVatSlot(kp.slot);
vatKeeper.deleteCListEntry(kpid, vpid);
} else if (kp.state === 'redirected') {
// TODO unimplemented
throw new Error('not implemented yet');
} else if (kp.state === 'fulfilledToData' || kp.state === 'rejected') {
vp.data = {
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-vpid-liveslots.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,5 @@ for (const mode of modes) {
});
}

// TODO unimplemented
// cases 5 and 6 are not implemented due to #886
1 change: 1 addition & 0 deletions packages/cosmic-swingset/lib/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default function makeBlockManager({
if (restoreHeight !== computedHeight) {
// Keep throwing forever.
decohered = Error(
// TODO unimplemented
`Unimplemented reset state from ${computedHeight} to ${restoreHeight}`,
);
throw decohered;
Expand Down
3 changes: 2 additions & 1 deletion packages/marshal/marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,12 +730,13 @@ export function makeMarshal(
* @returns {object} remotable, modified for debuggability
*/
function Remotable(iface = 'Remotable', props = {}, remotable = {}) {
// Find the alleged name.
// TODO unimplemented
assert.typeof(
iface,
'string',
details`Interface ${iface} must be a string; unimplemented`,
);
// TODO unimplemented
assert(
iface === 'Remotable' || iface.startsWith('Alleged: '),
details`For now, iface ${iface} must be "Remotable" or begin with "Alleged: "; unimplemented`,
Expand Down
1 change: 1 addition & 0 deletions packages/zoe/src/contractFacet/contractFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export function buildRootObject() {
return mintyIssuerRecord;
},
mintGains: (gains, zcfSeat = undefined) => {
// TODO unimplemented
assert(
zcfSeat !== undefined,
details`On demand seat creation not yet implemented`,
Expand Down
4 changes: 3 additions & 1 deletion packages/zoe/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
*
* Mint that amount of assets into the pooled purse.
* If a seat is provided, it is returned. Otherwise a new seat is
* returned. TODO This creation-on-demand is not yet implemented.
* returned.
* TODO unimplemented
* This creation-on-demand is not yet implemented.
*
* @property {(losses: AmountKeywordRecord,
* zcfSeat: ZCFSeat,
Expand Down

0 comments on commit 7795f93

Please sign in to comment.