implementation-contributed/v8/intl/assert.js
/**
 * Runs code() and asserts that it does now throw any exception.
 */
Runs code() and asserts that it does now throw any exception.
Runs code () and asserts that it does now throw any exception .
function assertDoesNotThrow(code, user_message = '') {
  try {
    if (typeof code == 'function') {
      code();
    } else {
      eval(code);
    }
  } catch (e) {
    fail("no expection", "exception: " + String(e), user_message);
  }
}
function assertDoesNotThrow ( code , user_message = '' ) { try { if ( typeof code == 'function' ) { code ( ) ; } else { eval ( code ) ; } } catch ( e ) { fail ( "no expection" , "exception: " + String ( e ) , user_message ) ; } }
Runs code() and asserts that it does now throw any exception.
Runs code () and asserts that it does now throw any exception .