Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JavaScript Parser updates for bug 2777310.
var x = 1; var y = []; var z = {}; Only x and y are detected - z is ignored, despite this being perfectly valid syntax (and quite common, when initialising a variable for use as a hash table). [It's equivalent to z = new Object(), in a similar fashion to y = [] being equivalent to y = new Array() ]. As far as I can tell, the cause seems to be that object literals are not being considered as valid for the right hand side of an assignment. Now, global variables for z is generated for the release after 5.8. git-svn-id: https://ctags.svn.sourceforge.net/svnroot/ctags/trunk@763 c5d04d22-be80-434c-894e-aa346cc9e8e8
- Loading branch information
dfishburn
authored and
Reza Jelveh
committed
Oct 19, 2011
1 parent
ec0c139
commit 5863484
Showing
2 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var x = 1; | ||
var z = {}; | ||
var y = []; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters