Kaydet (Commit) bc9b2fa4 authored tarafından Colomban Wendling's avatar Colomban Wendling

JavaScript: don't choke on array lists

üst 3c2d93ec
......@@ -660,6 +660,10 @@ static void findCmdTerm (tokenInfo *const token)
{
skipArgumentList(token);
}
else if ( isType (token, TOKEN_OPEN_SQUARE) )
{
skipArrayList(token);
}
else
{
readToken (token);
......
......@@ -14,6 +14,7 @@ test_sources = \
68hc11.asm \
angle_bracket.cpp \
anonymous_functions.php \
arraylist.js \
array_ref_and_out.cs \
array_spec.f90 \
array-spec.f90 \
......
var a = [];
var b = [1, 2, 3];
var c = [
{ a: "hello", b: 42 },
{ a: "hi", b: 41 }
];
var class = function() {
this.test1 = {
foo: [ 1, 2, 3],
bar: [ 4, 5, 9]
};
// FIXME: no tag is generated for test2
this.test2 = [
{ a: {}, b: {} },
{ a: {}, b: {} }
];
this.test3 = function() {}
}
# format=tagmanager
a163840
b163840
bar64class.test10
c163840
class10
foo64class.test10
test11class0
test3128class0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment