The documentation is a little sparse on the Mozilla page:
https://developer.mozilla.org/en/New_in_JavaScript_1.8#Expression_closures
and the wiki doesn't have a page created for it yet on the subject, so I
have a generic question on the grammar:
Is their an ambiguity that prevents the following from being a valid syntax?
function foo();
being the equivalent of
function foo(){ return };
Also, how is it that the following is not misinterpreted to "function() {
return false, true; }"?
addEventListener("click", function() false, true)
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss