setTimeout(function() { throw 'error'; }, 1000);