rem: return output.join(""); 
add: return output.join(""); 
context: dojo.hostenv.createXdPackage = function(contents){	//Find dependencies.	var deps = [];    var depRegExp = /dojo.(require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;    var match;	while((match = depRegExp.exec(contents)) != null){		deps.push("\"" + match[1] + "\", " + match[2]);	}	//Create package object and the call to packageLoaded.	var output = [];	output.push("dojo.hostenv.packageLoaded({\n");	//Add dependencies	if(deps.length > 0){		output.push("depends: [");		for(var i = 0; i < deps.length; i++){			if(i > 0){				output.push(",\n");			}			output.push("[" + deps[i] + "]");		}		output.push("],");	}	//Add the contents of the file inside a function.	//Pass in dojo as an argument to the function to help with	//allowing multiple versions of dojo in a page.	output.push("\ndefinePackage: function(dojo){");	output.push(contents);	output.push("\n}});");		return output.join("");}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/loader_xd.js/clean/www/resources/dojo-ajax/src/loader_xd.js