Some Jekyll tweaks for developer/debug mode
This commit is contained in:
parent
71fa2547be
commit
964eed08ea
5 changed files with 105 additions and 6 deletions
|
|
@ -1894,8 +1894,8 @@ HTMLOut.prototype.processMachines = function(aMachines, done)
|
|||
}
|
||||
}
|
||||
/*
|
||||
* Step 2: If there's a "debugger.js" source file in the list of uncompiled files, we need to remove it,
|
||||
* which we do by using the Array splice() method, removing the 1 matching element from the array.
|
||||
* Step 2: If there's a "debugger.js" source file in the list of uncompiled files, we need to remove
|
||||
* it, which we do by using the Array splice() method, removing the 1 matching element from the array.
|
||||
*/
|
||||
for (i = 0; i < asFiles.length; i++) {
|
||||
if (asFiles[i].indexOf("/debugger.js") >= 0) {
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ var TYPEDARRAYS = (typeof ArrayBuffer !== 'undefined');
|
|||
* TODO: BACKTRACK support is currently completely disabled until we have a chance to investigate the problem
|
||||
* discussed in Bus.addBackTrackObject().
|
||||
*/
|
||||
var BACKTRACK = !COMPILED;
|
||||
var BACKTRACK = !COMPILED && DEBUG;
|
||||
|
||||
/**
|
||||
* @define {boolean}
|
||||
|
|
@ -127,7 +127,7 @@ var I386 = true;
|
|||
*
|
||||
* COMPAQ386 enables Compaq DeskPro 386 support. Requires I386 support as well (duh).
|
||||
*/
|
||||
var COMPAQ386 = true;
|
||||
var COMPAQ386 = I386;
|
||||
|
||||
/**
|
||||
* @define {boolean}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
* so that all DEBUG-only code will be removed by the compiler.
|
||||
*
|
||||
* However, when we're in "development mode" and want to run uncompiled code without any DEBUG-only
|
||||
* code, we must arrange for this additional file, nodebug.js, to be loaded as early as possible,
|
||||
* code, we must arrange for this additional file (nodebug.js) to be loaded immediately after defines.js,
|
||||
* which will then set DEBUG to false at runtime.
|
||||
*/
|
||||
DEBUG = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue