bare.js 749 B

123456789101112131415161718192021222324
  1. // Licensed Materials - Property of IBM
  2. //
  3. // IBM Watson Analytics
  4. //
  5. // (C) Copyright IBM Corp. 2016
  6. //
  7. // US Government Users Restricted Rights - Use, duplication or
  8. // disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. /*
  10. * This module is the NodeJS entry point for BareJS.
  11. * It attempts to auto-detects whether to load the debug or release version.
  12. *
  13. * Note: this file is copied to dist/nodejs by the build
  14. */
  15. /*global v8debug, process*/
  16. var debug = ( typeof v8debug !== "undefined" && !!v8debug );
  17. for ( var i = process.execArgv.length - 1; !debug && ( i >= 0 ); --i )
  18. debug = process.execArgv[i].lastIndexOf( "--debug", 0 );
  19. module.exports = debug ? require( "./bare.debug.js" ) : require( "./bare.release.js" );