From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (out.smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 9518621DE01 for ; Sat, 5 Dec 2015 01:11:11 -0800 (PST) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id DAEB84008F9; Sat, 5 Dec 2015 01:12:44 -0800 (PST) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id tB59Ch1d024726; Sat, 5 Dec 2015 01:12:43 -0800 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id tB59Che7024723; Sat, 5 Dec 2015 01:12:43 -0800 Date: Sat, 5 Dec 2015 01:12:43 -0800 (PST) From: Kevin Carhart To: Karl Dahlke cc: edbrowse-dev@lists.the-brannons.com In-Reply-To: Message-ID: References: <87vb8gra8x.fsf@mushroom.localdomain> <20151104171123.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: [Edbrowse-dev] javascript() in timer side effects X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 09:11:11 -0000 I pulled up paypal.com to find out if I could put the new jquery to use. Among other kinds of things going on, I found that one of their timers gives the following: timer line 1: ReferenceError: javascript is not defined timer line 1: ReferenceError: javascript is not defined I think what it traces back to is the SetTimeout code, where there is a differentiation based on if (fo). In the true condition, the side effect I think comes out like: t{1000|javascript()|0x7f273eb1fd00|1`~@} In the false condition, this is like Karl's async.html, and it succeeds: t{1000|increment()|0x7f368971dd00|1`~@} So for one thing, I was wondering if I understand your intention, Karl. Are you basically saying "this is an anonymous function anyhow, and we have to call it something, so let's call it 'javascript'?" Or alternately, does 'javascript' have meaning as a reserved word here? Is it related to the syntax of 'javascript:' with the colon, or no relation? In case you want a recreation of the problem which doesn't require hacking up paypal code, I made these: b http://carhart.net/~kevin/async_karls_original.html b http://carhart.net/~kevin/async_handler_in_variable.html The former succeeds and the latter fails. What can be done? I was thinking could we send the variable name itself in the side effect? That would be, if the phrasing was like var blah = function() { ... }; The side effect would then contain t{1000|blah()| thanks Kevin