thirdparty/WebInspector.js
/**
 * This function behavior depends on the "debug_devtools" flag value.
 * - In debug mode it loads scripts synchronously via xhr request.
 * - In release mode every occurrence of "importScript" in the js files
 *   that have been white listed in the build system gets replaced with
 *   the script source code on the compilation phase.
 *   The build system will throw an exception if it found importScript call
 *   in other files.
 *
 * To load scripts lazily in release mode call "loadScript" function.
 * @param {string} scriptName
 */
This function behavior depends on the "debug_devtools" flag value.
- In debug mode it loads scripts synchronously via xhr request.
- In release mode every occurrence of "importScript" in the js files
that have been white listed in the build system gets replaced with
the script source code on the compilation phase.
The build system will throw an exception if it found importScript call
in other files.

To load scripts lazily in release mode call "loadScript" function.
@param {string} scriptName
This function behavior depends on the " debug_devtools " flag value . - In debug mode it loads scripts synchronously via xhr request . - In release mode every occurrence of " importScript " in the js files that have been white listed in the build system gets replaced with the script source code on the compilation phase . The build system will throw an exception if it found importScript call in other files . To load scripts lazily in release mode call " loadScript " function . @param { string } scriptName
function importScript(scriptName)
{
    if (_importedScripts[scriptName])
        return;
    var xhr = new XMLHttpRequest();
    _importedScripts[scriptName] = true;
    xhr.open("GET", scriptName, false);
    xhr.send(null);
    if (!xhr.responseText)
        throw "empty response arrived for script '" + scriptName + "'";
    var baseUrl = location.origin + location.pathname;
    baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf("/"));
    var sourceURL = baseUrl + "/" + scriptName;
    eval(xhr.responseText + "\n//# sourceURL=" + sourceURL);
}
function importScript ( scriptName ) { if ( _importedScripts [ scriptName ] ) return ; var xhr = new XMLHttpRequest ( ) ; _importedScripts [ scriptName ] = true ; xhr . open ( "GET" , scriptName , false ) ; xhr . send ( null ) ; if ( ! xhr . responseText ) throw "empty response arrived for script '" + scriptName + "'" ; var baseUrl = location . origin + location . pathname ; baseUrl = baseUrl . substring ( 0 , baseUrl . lastIndexOf ( "/" ) ) ; var sourceURL = baseUrl + "/" + scriptName ; eval ( xhr . responseText + "\n//# sourceURL=" + sourceURL ) ; }
This function behavior depends on the "debug_devtools" flag value.
This function behavior depends on the " debug_devtools " flag value .