@@ -102,16 +102,17 @@ pub fn do(
102102 return error .UnknonwDomain ;
103103
104104 // select corresponding domain
105+ const action = iter .next () orelse return error .BadMethod ;
105106 return switch (domain ) {
106- .Browser = > browser (alloc , id , iter . next () .? , & scanner , ctx ),
107- .Target = > target (alloc , id , iter . next () .? , & scanner , ctx ),
108- .Page = > page (alloc , id , iter . next () .? , & scanner , ctx ),
109- .Log = > log (alloc , id , iter . next () .? , & scanner , ctx ),
110- .Runtime = > runtime (alloc , id , iter . next () .? , & scanner , s , ctx ),
111- .Network = > network (alloc , id , iter . next () .? , & scanner , ctx ),
112- .Emulation = > emulation (alloc , id , iter . next () .? , & scanner , ctx ),
113- .Fetch = > fetch (alloc , id , iter . next () .? , & scanner , ctx ),
114- .Performance = > performance (alloc , id , iter . next () .? , & scanner , ctx ),
107+ .Browser = > browser (alloc , id , action , & scanner , ctx ),
108+ .Target = > target (alloc , id , action , & scanner , ctx ),
109+ .Page = > page (alloc , id , action , & scanner , ctx ),
110+ .Log = > log (alloc , id , action , & scanner , ctx ),
111+ .Runtime = > runtime (alloc , id , action , & scanner , s , ctx ),
112+ .Network = > network (alloc , id , action , & scanner , ctx ),
113+ .Emulation = > emulation (alloc , id , action , & scanner , ctx ),
114+ .Fetch = > fetch (alloc , id , action , & scanner , ctx ),
115+ .Performance = > performance (alloc , id , action , & scanner , ctx ),
115116 };
116117}
117118
0 commit comments