rem: assert(res.length == 1); var msg = res[0]; 
add: assert(res.msgs.length == 1); var msg = res.msgs[0]; 
context: function expand_objectclass(ldb, o) {	var attrs = new Array("auxiliaryClass", "systemAuxiliaryClass",			      "possSuperiors", "systemPossSuperiors",			      "subClassOf");	var res = ldb.search(		sprintf("(&(objectClass=classSchema)(ldapDisplayName=%s))", o.name),		rootDse.schemaNamingContext, ldb.SCOPE_SUBTREE, attrs);	var a;	dprintf("Expanding class %s\n", o.name);	assert(res != undefined);	assert(res.length == 1);	var msg = res[0];	for (a=0;a<attrs.length;a++) {		var aname = attrs[a];		if (msg[aname] == undefined) {			continue;		}		var list = msg[aname];		if (typeof(list) == "string") {			list = new Array(msg[aname]);		}		var i;		for (i=0;i<list.length;i++) {			var name = list[i];			if (objectclasses[name] == undefined) {				dprintf("Found new objectclass '%s'\n", name);				objectclasses[name] = obj_objectClass(ldb, name);			}		}	}}
meta: 5771	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5771/7ca399c0755e186508a4ed9796cbbbe6f50181e9/minschema.js/buggy/testprogs/ejs/minschema.js