Skip to content

Commit

Permalink
Fix: 0x2028 and 0x2029 in string literals should increment line number (
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Sep 8, 2021
1 parent 63bd0bc commit ee1d3ec
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^8.4.1",
"acorn": "^8.5.0",
"acorn-jsx": "^5.3.1",
"eslint-visitor-keys": "^3.0.0"
},
Expand Down
20 changes: 10 additions & 10 deletions tests/fixtures/ecma-version/10/json-superset/valid-2028.result.js
Expand Up @@ -6,8 +6,8 @@ export default {
"column": 0
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand All @@ -23,8 +23,8 @@ export default {
"column": 0
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand All @@ -40,8 +40,8 @@ export default {
"column": 4
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down Expand Up @@ -74,8 +74,8 @@ export default {
"column": 8
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down Expand Up @@ -155,8 +155,8 @@ export default {
"column": 8
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down
20 changes: 10 additions & 10 deletions tests/fixtures/ecma-version/10/json-superset/valid-2029.result.js
Expand Up @@ -6,8 +6,8 @@ export default {
"column": 0
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand All @@ -23,8 +23,8 @@ export default {
"column": 0
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand All @@ -40,8 +40,8 @@ export default {
"column": 4
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down Expand Up @@ -74,8 +74,8 @@ export default {
"column": 8
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down Expand Up @@ -155,8 +155,8 @@ export default {
"column": 8
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"range": [
Expand Down
Expand Up @@ -2,5 +2,5 @@ export default {
"index": 8,
"lineNumber": 1,
"column": 9,
"message": "'new.target' can only be used in functions"
"message": "'new.target' can only be used in functions and class static block"
};

0 comments on commit ee1d3ec

Please sign in to comment.