Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb40548

Browse files
committed
fixes semicolon issues
1 parent a66d1c0 commit fb40548

2 files changed

Lines changed: 219 additions & 233 deletions

File tree

javascript/ql/test/library-tests/Expr/nullSensitiveContexts.js

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,43 @@
44
// //
55
///////////////////
66

7-
foo[bar]
8-
foo.bar
9-
new Foo
10-
new Foo()
11-
foo.bar = 5
12-
foo(bar)
13-
x + y
14-
x - y
15-
x * y
16-
x / y
17-
x % y
18-
+x
19-
-x
20-
++x
21-
x++
22-
--x
23-
x--
24-
x += y
25-
x -= y
26-
x *= y
27-
x /= y
28-
x %= y
29-
[x , y] = p
7+
foo[bar];
8+
foo.bar;
9+
new Foo;
10+
new Foo();
11+
foo.bar = 5;
12+
foo(bar);
13+
x + y;
14+
x - y;
15+
x * y;
16+
x / y;
17+
x % y;
18+
+x;
19+
-x;
20+
++x;
21+
x++;
22+
--x;
23+
x--;
24+
x += y;
25+
x -= y;
26+
x *= y;
27+
x /= y;
28+
x %= y;
29+
[x , y] = p;
3030
//[1,2,...xs]
31-
x & y
32-
x | y
33-
x ^ y
34-
x << y
35-
x >> y
36-
x >>> y
37-
~x
38-
x &= y
39-
x |= y
40-
x ^= y
41-
x <<= y
42-
x >>= y
43-
x >>>= y
31+
x & y;
32+
x | y;
33+
x ^ y;
34+
x << y;
35+
x >> y;
36+
x >>> y;
37+
~x;
38+
x &= y;
39+
x |= y;
40+
x ^= y;
41+
x <<= y;
42+
x >>= y;
43+
x >>>= y;
4444
for (let x of y) { }
4545

4646

@@ -51,9 +51,9 @@ for (let x of y) { }
5151
// //
5252
///////////////////////
5353

54-
x && y
55-
x || y
56-
!x
54+
x && y;
55+
x || y;
56+
!x;
5757
if (x) { }
5858
while (x) { }
5959
for (; y; z) { }

0 commit comments

Comments
 (0)