js-parser: Fix two test fixtures with CR but no LF...?
MODIFY
packages/@romejs/js-parser/__rtests__/__rfixtures__/core/uncategorised/51/input.js
packages/@romejs/js-parser/__rtests__/__rfixtures__/core/uncategorised/51/input.js
-/*a b*/ 42
\ No newline at end of file
+/*a
+b*/ 42;

MODIFY
packages/@romejs/js-parser/__rtests__/__rfixtures__/core/uncategorised/51/output.txt
packages/@romejs/js-parser/__rtests__/__rfixtures__/core/uncategorised/51/output.txt
@@ -10,9 +10,9 @@ Program {
loc: Object {
filename: 'input.js'
end: Object {
- column: 6
- index: 10
- line: 2
+ column: 0
+ index: 12
+ line: 3
}
start: Object {
column: 0
@@ -22,7 +22,7 @@ Program {
}
comments: Array [
CommentBlock {
- value: 'a\rb'
+ value: 'a\nb'
loc: Object {
filename: 'input.js'
end: Object {
@@ -43,8 +43,8 @@ Program {
loc: Object {
filename: 'input.js'
end: Object {
- column: 6
- index: 10
+ column: 7
+ index: 11
line: 2
}
start: Object {
@@ -72,7 +72,7 @@ Program {
}
leadingComments: Array [
CommentBlock {
- value: 'a\rb'
+ value: 'a\nb'
loc: Object {
filename: 'input.js'
end: Object {

MODIFY
packages/@romejs/js-parser/__rtests__/__rfixtures__/es2015/uncategorised/23/input.js
packages/@romejs/js-parser/__rtests__/__rfixtures__/es2015/uncategorised/23/input.js
`
- `
\ No newline at end of file
+
+`;

MODIFY
packages/@romejs/js-parser/__rtests__/__rfixtures__/es2015/uncategorised/23/output.txt
packages/@romejs/js-parser/__rtests__/__rfixtures__/es2015/uncategorised/23/output.txt
@@ -11,9 +11,9 @@ Program {
loc: Object {
filename: 'input.js'
end: Object {
- column: 1
- index: 5
- line: 4
+ column: 0
+ index: 7
+ line: 5
}
start: Object {
column: 0
@@ -26,8 +26,8 @@ Program {
loc: Object {
filename: 'input.js'
end: Object {
- column: 1
- index: 5
+ column: 2
+ index: 6
line: 4
}
start: Object {

js-parser: Fix two test fixtures with CR but no LF...?