You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/rules/README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The variable `pi` should have a warning.
19
19
20
20
Identifies statements that are missing semicolons.
21
21
```javascript
22
-
constx=1;
22
+
constx=1
23
23
```
24
24
The line ending should have an error.
25
25
@@ -113,7 +113,7 @@ true == 1;
113
113
Only permitted operators defined in Source is allowed. Binary operators like `^` or `instanceof` is banned, unary operators like `typeof` is also banned.
114
114
```javascript
115
115
100^5;
116
-
typeof1==="number"
116
+
typeof1==="number";
117
117
```
118
118
The two expressions will throw an error.
119
119
@@ -146,7 +146,7 @@ Cannot call identifiers that are not a function
146
146
constx=1;
147
147
x();
148
148
let y =1;
149
-
y()
149
+
y();
150
150
```
151
151
The function application on `x` will throw an error, however the function application on `y` will not, as y
152
152
can be reassigned, hence it will be a runtime error.
0 commit comments