@@ -118,13 +118,10 @@ class DeserializationHandler implements ProxyHandler<object> {
118
118
}
119
119
120
120
const container = this . $container$ ;
121
- let propValue = value ;
122
- if ( typeId !== TypeIds . ForwardRefs ) {
123
- propValue = allocate ( container , typeId , value ) ;
124
- /** We stored the reference, so now we can inflate, allowing cycles. */
125
- if ( typeId >= TypeIds . Error ) {
126
- propValue = inflate ( container , propValue , typeId , value ) ;
127
- }
121
+ let propValue = allocate ( container , typeId , value ) ;
122
+ /** We stored the reference, so now we can inflate, allowing cycles. */
123
+ if ( typeId >= TypeIds . Error ) {
124
+ propValue = inflate ( container , propValue , typeId , value ) ;
128
125
}
129
126
130
127
Reflect . set ( target , property , propValue ) ;
@@ -460,6 +457,8 @@ const allocate = (container: DeserializeContainer, typeId: number, value: unknow
460
457
throw qError ( QError . serializeErrorCannotAllocate , [ 'forward ref' ] ) ;
461
458
}
462
459
return container . $getObjectById$ ( container . $forwardRefs$ [ value as number ] ) ;
460
+ case TypeIds . ForwardRefs :
461
+ return value ;
463
462
case TypeIds . Constant :
464
463
return _constants [ value as Constants ] ;
465
464
case TypeIds . Number :
0 commit comments