mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Adding extra comments -
This commit is contained in:
parent
1ab211c7a1
commit
6637d3a44d
@ -55,6 +55,12 @@ var expectedvalues = [];
|
||||
/*
|
||||
* Just seeing we don't crash when compiling this function -
|
||||
* This example provided by jim-patterson@ncf.ca
|
||||
*
|
||||
* Brendan: "Jim, thanks for the testcase. But note that |var|
|
||||
* in a JS function makes a function-scoped variable -- JS lacks
|
||||
* block scope apart from for catch variables within catch blocks.
|
||||
*
|
||||
* Therefore the catch variable hides the function-local variable in your case"
|
||||
*/
|
||||
function F()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user