We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4709ea commit 9d05b01Copy full SHA for 9d05b01
tests/suites/algorithms.js
@@ -248,6 +248,18 @@ function stubUnsafe(suite) {
248
if(typeof suite !== 'object') {
249
return suite;
250
}
251
+ // if the suite has a cryptosuite object proxy it
252
+ if(suite._cryptosuite) {
253
+ suite._cryptosuite = new Proxy(suite._cryptosuite, {
254
+ get(target, prop) {
255
+ if(prop === 'canonize') {
256
+ return function(doc, options) {
257
+ return suite._cryptosuite.canonize(doc, {...options, safe: false});
258
+ };
259
+ }
260
261
+ });
262
263
return new Proxy(suite, {
264
get(target, prop) {
265
if(prop === 'canonize') {
0 commit comments