Skip to content

Commit

Permalink
start on implementation, baby steps
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Jul 9, 2024
1 parent 2c1b0e0 commit 6dda764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/swingset-liveslots/src/virtualObjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,13 @@ export const makeVirtualObjectManager = (
// See there for more explanation.
interfaceGuard = undefined,
interfaceGuardKit = undefined,
currentVersion = 0,

Check failure on line 692 in packages/swingset-liveslots/src/virtualObjectManager.js

View workflow job for this annotation

GitHub Actions / lint-rest

'currentVersion' is never reassigned. Use 'const' instead
upgradeState = undefined,

Check failure on line 693 in packages/swingset-liveslots/src/virtualObjectManager.js

View workflow job for this annotation

GitHub Actions / lint-rest

'upgradeState' is assigned a value but never used. Allowed unused vars must match /^_/u
} = options;

assert.typeof(currentVersion, 'number');
Nat(currentVersion);

const statePrototype = {}; // Not frozen yet
const stateToBaseRefMap = new WeakMap();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,5 @@ test.failing('upgrader does not match state shape', async t => {
});
});
});

// TODO: examine saved DurableKindDescriptor.stateShapeCapData for updates

0 comments on commit 6dda764

Please sign in to comment.