a:10:{s:9:"#provides";s:4:"dojo";s:9:"#resource";s:37:"_base/_loader/hostenv_spidermonkey.js";s:19:"dojo.isSpidermonkey";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:19:"Detect spidermonkey";}s:9:"dojo.exit";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"exitcode";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:17:" quit(exitcode); ";s:7:"summary";s:0:"";}s:29:"dojo._spidermonkeyCurrentFile";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"depth";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1579:"/* * SpiderMonkey host environment */ if(dojo.config["baseUrl"]){ dojo.baseUrl = dojo.config["baseUrl"]; }else{ dojo.baseUrl = "./"; } dojo._name = 'spidermonkey'; dojo.isSpidermonkey = { // summary: Detect spidermonkey }; dojo.isSpidermonkey = true; dojo.exit = function(exitcode){ quit(exitcode); } if(typeof print == "function"){ console.debug = print; } if(typeof line2pc == 'undefined'){ throw new Error("attempt to use SpiderMonkey host environment when no 'line2pc' global"); } dojo._spidermonkeyCurrentFile = function(depth){ // // This is a hack that determines the current script file by parsing a // generated stack trace (relying on the non-standard "stack" member variable // of the SpiderMonkey Error object). // // If param depth is passed in, it'll return the script file which is that far down // the stack, but that does require that you know how deep your stack is when you are // calling. // var s = ''; try{ throw Error("whatever"); }catch(e){ s = e.stack; } // lines are like: bu_getCurrentScriptURI_spidermonkey("ScriptLoader.js")@burst/Runtime.js:101 var matches = s.match(/[^@]*\.js/gi); if(!matches){ throw Error("could not parse stack string: '" + s + "'"); } var fname = (typeof depth != 'undefined' && depth) ? matches[depth + 1] : matches[matches.length - 1]; if(!fname){ throw Error("could not find file name in stack string '" + s + "'"); } //print("SpiderMonkeyRuntime got fname '" + fname + "' from stack string '" + s + "'"); return fname;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:13:"dojo._loadUri";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"uri";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1977:"/* * SpiderMonkey host environment */ if(dojo.config["baseUrl"]){ dojo.baseUrl = dojo.config["baseUrl"]; }else{ dojo.baseUrl = "./"; } dojo._name = 'spidermonkey'; dojo.isSpidermonkey = { // summary: Detect spidermonkey }; dojo.isSpidermonkey = true; dojo.exit = function(exitcode){ quit(exitcode); } if(typeof print == "function"){ console.debug = print; } if(typeof line2pc == 'undefined'){ throw new Error("attempt to use SpiderMonkey host environment when no 'line2pc' global"); } dojo._spidermonkeyCurrentFile = function(depth){ // // This is a hack that determines the current script file by parsing a // generated stack trace (relying on the non-standard "stack" member variable // of the SpiderMonkey Error object). // // If param depth is passed in, it'll return the script file which is that far down // the stack, but that does require that you know how deep your stack is when you are // calling. // var s = ''; try{ throw Error("whatever"); }catch(e){ s = e.stack; } // lines are like: bu_getCurrentScriptURI_spidermonkey("ScriptLoader.js")@burst/Runtime.js:101 var matches = s.match(/[^@]*\.js/gi); if(!matches){ throw Error("could not parse stack string: '" + s + "'"); } var fname = (typeof depth != 'undefined' && depth) ? matches[depth + 1] : matches[matches.length - 1]; if(!fname){ throw Error("could not find file name in stack string '" + s + "'"); } //print("SpiderMonkeyRuntime got fname '" + fname + "' from stack string '" + s + "'"); return fname; } // print(dojo._spidermonkeyCurrentFile(0)); dojo._loadUri = function(uri){ // spidermonkey load() evaluates the contents into the global scope (which // is what we want). // TODO: sigh, load() does not return a useful value. // Perhaps it is returning the value of the last thing evaluated? var ok = load(uri); // console.log("spidermonkey load(", uri, ") returned ", ok); return 1;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:12:"dojo.baseUrl";a:1:{s:7:"summary";s:0:"";}s:10:"dojo._name";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:13:"console.debug";a:1:{s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}