bin/tool-runner.js
function prepareDebug() {
  // Import Closure Library and deps.js.
  require('../src/wtf/bootstrap/node').importClosureLibrary([
    'wtf_js-deps.js'
  ]);

  // Disable asserts unless debugging - asserts cause all code to deopt.
  if (debugMode) {
    goog.require('goog.asserts');
    goog.asserts.assert = function(condition, opt_message) {
      console.assert(condition, opt_message);
      return condition;
    };
  } else {
    goog.DEBUG = false;
    goog.require('goog.asserts');
    goog.asserts.assert = function(condition) {
      return condition;
    };
  }

  // Load WTF and configure options.
  goog.require('wtf');
  wtf.NODE = true;
  goog.require('wtf.db.exports');
  goog.require('wtf.db.node');
}
function prepareDebug() {
  // Import Closure Library and deps.js.
  require('../src/wtf/bootstrap/node').importClosureLibrary([
    'wtf_js-deps.js'
  ]);

  // Disable asserts unless debugging - asserts cause all code to deopt.
  if (debugMode) {
    goog.require('goog.asserts');
    goog.asserts.assert = function(condition, opt_message) {
      console.assert(condition, opt_message);
      return condition;
    };
  } else {
    goog.DEBUG = false;
    goog.require('goog.asserts');
    goog.asserts.assert = function(condition) {
      return condition;
    };
  }

  // Load WTF and configure options.
  goog.require('wtf');
  wtf.NODE = true;
  goog.require('wtf.db.exports');
  goog.require('wtf.db.node');
}
function prepareDebug ( ) { // Import Closure Library and deps.js. require ( '../src/wtf/bootstrap/node' ) . importClosureLibrary ( [ 'wtf_js-deps.js' ] ) ; // Disable asserts unless debugging - asserts cause all code to deopt. if ( debugMode ) { goog . require ( 'goog.asserts' ) ; goog . asserts . assert = function ( condition , opt_message ) { console . assert ( condition , opt_message ) ; return condition ; } ; } else { goog . DEBUG = false ; goog . require ( 'goog.asserts' ) ; goog . asserts . assert = function ( condition ) { return condition ; } ; } // Load WTF and configure options. goog . require ( 'wtf' ) ; wtf . NODE = true ; goog . require ( 'wtf.db.exports' ) ; goog . require ( 'wtf.db.node' ) ; }
Prepares the global context for running a tool with the debug WTF.
Prepares the global context for running a tool with the debug WTF .