Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 12, 2020
1 parent 6346c77 commit 4a79c1e
Show file tree
Hide file tree
Showing 25 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/location.js
Expand Up @@ -135,7 +135,7 @@ export const Errors = Object.freeze({
StrictEvalArgumentsBinding: "Binding '%0' in strict mode",
StrictFunction:
"In strict mode code, functions can only be declared at top level or inside a block",
StrictOctalLiteral: "Octal literal in strict mode",
StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode",
StrictWith: "'with' in strict mode",
SuperNotAllowed:
"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",
Expand Down
Expand Up @@ -13,15 +13,15 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (2:4)",
"SyntaxError: Octal literal in strict mode (7:4)",
"SyntaxError: Octal literal in strict mode (8:4)",
"SyntaxError: Octal literal in strict mode (14:4)",
"SyntaxError: Octal literal in strict mode (19:4)",
"SyntaxError: Octal literal in strict mode (20:4)",
"SyntaxError: Octal literal in strict mode (25:2)",
"SyntaxError: Octal literal in strict mode (30:2)",
"SyntaxError: Octal literal in strict mode (31:2)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (2:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (7:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (8:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (14:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (19:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (20:4)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (25:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (30:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (31:2)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,18 +13,18 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (8:2)",
"SyntaxError: Octal literal in strict mode (9:2)",
"SyntaxError: Octal literal in strict mode (11:0)",
"SyntaxError: Octal literal in strict mode (12:0)",
"SyntaxError: Octal literal in strict mode (14:2)",
"SyntaxError: Octal literal in strict mode (14:10)",
"SyntaxError: Octal literal in strict mode (14:18)",
"SyntaxError: Octal literal in strict mode (1:2)",
"SyntaxError: Octal literal in strict mode (1:10)",
"SyntaxError: Octal literal in strict mode (1:18)",
"SyntaxError: Octal literal in strict mode (3:2)",
"SyntaxError: Octal literal in strict mode (4:2)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (8:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (9:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (11:0)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (12:0)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (14:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (14:10)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (14:18)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:10)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:18)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (3:2)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (4:2)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:0)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:0)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:35)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:35)"
],
"program": {
"type": "Program",
Expand Down Expand Up @@ -158,4 +158,4 @@
],
"directives": []
}
}
}
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:33)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:33)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:38)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:38)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:36)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:69)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:69)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:65)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:65)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (2:10)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (2:10)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (2:10)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (2:10)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Constructor can't have get/set accessor (1:14)"
"SyntaxError: Constructor may not be a get/set accessor (1:14)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:21)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:21)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:21)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:21)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:2)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:2)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:35)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:35)"
],
"program": {
"type": "Program",
Expand Down Expand Up @@ -158,4 +158,4 @@
],
"directives": []
}
}
}
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:33)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:33)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:38)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:38)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:36)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:36)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,8 +13,8 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:36)",
"SyntaxError: Octal literal in strict mode (1:57)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)",
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:57)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Octal literal in strict mode (1:69)"
"SyntaxError: Legacy octal literals are not allowed in strict mode (1:69)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Constructor can't have get/set accessor (1:13)"
"SyntaxError: Constructor may not be a get/set accessor (1:13)"
],
"program": {
"type": "Program",
Expand Down
Expand Up @@ -13,7 +13,7 @@
}
},
"errors": [
"SyntaxError: Constructor can't have get/set accessor (1:13)"
"SyntaxError: Constructor may not be a get/set accessor (1:13)"
],
"program": {
"type": "Program",
Expand Down

0 comments on commit 4a79c1e

Please sign in to comment.