window.onerror=clearError;

function clearError() {
    return true;
}