Skip to content

Commit 800dd16

Browse files
committed
JS: Add failing TRAP test for trailing comma
1 parent 0e31bf1 commit 800dd16

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"array": [
3+
"foo",
4+
"bar",
5+
]
6+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#10000=@"/array-trailing-comma.json;sourcefile"
2+
files(#10000,"/array-trailing-comma.json")
3+
#10001=@"/;folder"
4+
folders(#10001,"/")
5+
containerparent(#10001,#10000)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
9+
#20000=*
10+
json_errors(#20000,"Error: Omitted elements are not allowed in JSON.")
11+
#20001=@"loc,{#10000},5,4,5,4"
12+
locations_default(#20001,#10000,5,4,5,4)
13+
hasLocation(#20000,#20001)
14+
numlines(#10000,6,0,0)
15+
filetype(#10000,"json")

0 commit comments

Comments
 (0)