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