From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 298BF78423 for ; Sun, 9 Feb 2014 07:21:50 -0800 (PST) Received: by mail-wg0-f44.google.com with SMTP id l18so3532278wgh.35 for ; Sun, 09 Feb 2014 07:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Y7psHo9ZwNIBc73vE9jYuldn78egY85oGVmUrVybw3M=; b=0cdIMIleXxJ1AGKm8dEh6Ho0SxhLB0rJL9D/iIXeIGtLpGyj1PxytbFn/YexnoBqru +Gdwx0JkzQtZYz3B0pEXLbgGltqMTl/JXjjnU3xGCkTwXFmK0wl+5qSMwzm0z6ZyopDq SZnwCU/0e3FZROVLOKSBSj10VPndwO9z/30UuzWHKEyJaJlKmjTyWrBSB07uN0sAWgnk vkWbtUWL34sRRSfpbKpD64A59/XLxISdvzULoNnb86OF+MaLSaciMM9NmT+LK0AjY+Oe /QEEBUC7W6h9kuII2JFUYu678vusw/y6CtkajjIg/1P0PiaFKhRQWIeVwsEkDbn+81Ds C3aQ== X-Received: by 10.180.188.66 with SMTP id fy2mr7090601wic.45.1391959268712; Sun, 09 Feb 2014 07:21:08 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id ev4sm27586987wib.1.2014.02.09.07.21.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 09 Feb 2014 07:21:07 -0800 (PST) Date: Sun, 9 Feb 2014 15:21:04 +0000 From: Adam Thompson To: Karl Dahlke Message-ID: <20140209152104.GE11542@toaster.adamthompson.me.uk> References: <20140109094857.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140109094857.eklhad@comcast.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] Error Legs X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 15:21:51 -0000 On Sun, Feb 09, 2014 at 09:48:57AM -0500, Karl Dahlke wrote: > It is important not to stop javascript, even the current context, > on a simple error like a syntax error or unreferenced variable. > This happens a lot; some kind of analytics script > that just tracks visitors to the site, > and those tend to be complicated javascript, > so uses a function that I don't have, and stops, > but then the next chunk of code is executed, > and that is the heart of the website, code that we really need to function. > So this is one of those things I should think about for a couple days, > before writing a line of code. Yeah, I agree. I guess my point is more that when we have an unrecoverable error we need to stop running the current script and possibly clean up the context. However I really think we shouldn't allow js to kill the entire browser, particularly if we want to get more people to use it. Is there a way of killing the current script and then moving on to the next one? The docs said something about throwing an uncatchable error within a c function? Cheers, Adam.