File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -237,14 +237,14 @@ function _generateNoTypeCryptosuite({
237
237
} = generators ?. mandatory ;
238
238
const noType = invalidProofType ( {
239
239
credential : structuredClone ( credential ) ,
240
- suite : stubUnsafe ( suite ) ,
241
- selectiveSuite : stubUnsafe ( selectiveSuite ) ,
240
+ suite : unsafeProxy ( suite ) ,
241
+ selectiveSuite : unsafeProxy ( selectiveSuite ) ,
242
242
proofType : ''
243
243
} ) ;
244
244
return invalidCryptosuite ( { ...noType , cryptosuiteName : '' } ) ;
245
245
}
246
246
247
- function stubUnsafe ( suite ) {
247
+ function unsafeProxy ( suite ) {
248
248
if ( typeof suite !== 'object' ) {
249
249
return suite ;
250
250
}
@@ -257,6 +257,7 @@ function stubUnsafe(suite) {
257
257
return suite . _cryptosuite . canonize ( doc , { ...options , safe : false } ) ;
258
258
} ;
259
259
}
260
+ return Reflect . get ( ...arguments ) ;
260
261
}
261
262
} ) ;
262
263
}
You can’t perform that action at this time.
0 commit comments