var ModuleScript = class_create(IModule, {
	type: 'script',
	
	load_: function(path){
		var fn = __cfg.getScript || file_getScript;
		return fn(path);
	},
	getExport_: function(property) {
		var obj = this.exports;
		var x = property !== '*'
			? obj_getProperty(obj, property)
			: obj
			;
		if (x == null) {
			log_error('Exported value is undefined', name);
		}
		return x;
	},
	
	register: function(ctr, name, alias) {
		var prop = alias || name;
		var obj = this.getExport_(name);
		if (ctr.scope == null) {
			ctr.scope = {};
		}
		obj_setProperty(ctr.scope, prop, obj);
	},
	
});
var ModuleScript = class_create(IModule, {
	type: 'script',
	
	load_: function(path){
		var fn = __cfg.getScript || file_getScript;
		return fn(path);
	},
	getExport_: function(property) {
		var obj = this.exports;
		var x = property !== '*'
			? obj_getProperty(obj, property)
			: obj
			;
		if (x == null) {
			log_error('Exported value is undefined: ', property);
		}
		return x;
	},
	
	register: function(ctr, name, alias) {
		var prop = alias || name;
		var obj = this.getExport_(name);
		if (ctr.scope == null) {
			ctr.scope = {};
		}
		obj_setProperty(ctr.scope, prop, obj);
	},
	
});
fix (ModuleScript) proper message on errored `getHandler`