@@ -19,10 +19,10 @@ class FakeFinalizationRegistry {
19
19
}
20
20
21
21
export function makeFakeLiveSlotsStuff ( options = { } ) {
22
- let vom ;
23
- function setVom ( vomToUse ) {
24
- assert ( ! vom , 'vom already configured' ) ;
25
- vom = vomToUse ;
22
+ let vrm ;
23
+ function setVrm ( vrmToUse ) {
24
+ assert ( ! vrm , 'vrm already configured' ) ;
25
+ vrm = vrmToUse ;
26
26
}
27
27
28
28
const {
@@ -174,10 +174,10 @@ export function makeFakeLiveSlotsStuff(options = {}) {
174
174
const { type, virtual } = parseVatSlot ( slot ) ;
175
175
assert . equal ( type , 'object' ) ;
176
176
if ( virtual ) {
177
- if ( vom ) {
178
- return vom . makeVirtualObjectRepresentative ( slot ) ;
177
+ if ( vrm ) {
178
+ return vrm . reanimate ( slot , false ) ;
179
179
} else {
180
- assert . fail ( 'fake liveSlots stuff configured without vom ' ) ;
180
+ assert . fail ( 'fake liveSlots stuff configured without vrm ' ) ;
181
181
}
182
182
} else {
183
183
return getValForSlot ( slot ) ;
@@ -216,7 +216,7 @@ export function makeFakeLiveSlotsStuff(options = {}) {
216
216
addToPossiblyDeadSet,
217
217
addToPossiblyRetiredSet,
218
218
dumpStore,
219
- setVom ,
219
+ setVrm ,
220
220
} ;
221
221
}
222
222
@@ -235,7 +235,7 @@ export function makeFakeVirtualStuff(options = {}) {
235
235
const fakeStuff = makeFakeLiveSlotsStuff ( options ) ;
236
236
const vrm = makeFakeVirtualReferenceManager ( fakeStuff ) ;
237
237
const vom = makeFakeVirtualObjectManager ( vrm , fakeStuff , options ) ;
238
- fakeStuff . setVom ( vom ) ;
238
+ fakeStuff . setVrm ( vrm ) ;
239
239
const cm = makeFakeCollectionManager ( vrm , fakeStuff , options ) ;
240
240
return { fakeStuff, vrm, vom, cm } ;
241
241
}
@@ -244,7 +244,7 @@ export function makeStandaloneFakeVirtualObjectManager(options = {}) {
244
244
const fakeStuff = makeFakeLiveSlotsStuff ( options ) ;
245
245
const vrm = makeFakeVirtualReferenceManager ( fakeStuff ) ;
246
246
const vom = makeFakeVirtualObjectManager ( vrm , fakeStuff , options ) ;
247
- fakeStuff . setVom ( vom ) ;
247
+ fakeStuff . setVrm ( vrm ) ;
248
248
return vom ;
249
249
}
250
250
0 commit comments