You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fall through to original method for all other cases
@@ -315,6 +331,8 @@ export class WebCompat extends ContentFeature {
315
331
permissions.query=newProxy(
316
332
async(query)=>{
317
333
this.addDebugFlag();
334
+
335
+
// Validate required arguments
318
336
if(!query){
319
337
thrownewTypeError("Failed to execute 'query' on 'Permissions': 1 argument required, but only 0 present.");
320
338
}
@@ -328,17 +346,17 @@ export class WebCompat extends ContentFeature {
328
346
`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${query.name}' is not a valid enum value of type PermissionName.`,
0 commit comments