// there is a hack with line-breaks, which means this function cannot be compiled (yet).
// so we link at runtime

function runMoz(code, c1) {
	var console = c1;
	var errLinRef;
	// synch line numbers	
	try{var x=y;}catch(e){errLineRef=e.lineNumber;} try { var result = eval(code); // don't break this line!
		return {success:true, value:result}
	} catch (e) {
		var msg = e.toString();
		if (e.lineNumber) {
			var codeLineNo = e.lineNumber-errLineRef + 1;
			return {success:false, errorMessage:msg, errorLine:codeLineNo}
		}		
		return {success:false, errorMessage:msg}
	}
}
