B2G/gecko/extensions/cookie/test/unit/head_cookies.js
// Helper to step a generator function and catch a StopIteration exception.
Helper to step a generator function and catch a StopIteration exception.
Helper to step a generator function and catch a StopIteration exception .
function do_run_generator(generator)
{
  try {
    generator.next();
  } catch (e) {
    if (e != StopIteration)
      do_throw("caught exception " + e, Components.stack.caller);
  }
}
function do_run_generator ( generator ) { try { generator . next ( ) ; } catch ( e ) { if ( e != StopIteration ) do_throw ( "caught exception " + e , Components . stack . caller ) ; } }
Helper to step a generator function and catch a StopIteration exception.
Helper to step a generator function and catch a StopIteration exception .