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
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to