https://bugzilla.wikimedia.org/show_bug.cgi?id=69924

--- Comment #18 from Krinkle <[email protected]> ---
Another solution would be to return early instead of wrap the whole thing.

While a return statement is not allowed in the global scope, a throw works
fine.


 if (!cond)
  throw '';
 .. rest of script ..
 .. mw/$ ..

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to