-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/adjacent-tags/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unterminated regexp literal | ||
,-[$DIR/tests/jsx/errors/adjacent-tags/input.js:2:1] | ||
2 | var x = <div>one</div><div>two</div>; | ||
,-[$DIR/tests/jsx/errors/adjacent-tags/input.js:1:1] | ||
1 | var x = <div>one</div><div>two</div>; | ||
: ^^^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/attribute-arbitrary-expression/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x JSX value should be either an expression or a quoted JSX text | ||
,-[$DIR/tests/jsx/errors/attribute-arbitrary-expression/input.js:2:1] | ||
2 | <Foo bar=bar() /> | ||
,-[$DIR/tests/jsx/errors/attribute-arbitrary-expression/input.js:1:1] | ||
1 | <Foo bar=bar() /> | ||
: ^^^ | ||
`---- |
8 changes: 4 additions & 4 deletions
8
crates/swc_ecma_parser/tests/jsx/errors/attribute-empty-expression/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
x Unexpected token `> (jsx tag end)`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, | ||
| string, regexp, ` for template literal, (, or an identifier | ||
,-[$DIR/tests/jsx/errors/attribute-empty-expression/input.js:2:1] | ||
2 | <foo bar={} /> | ||
,-[$DIR/tests/jsx/errors/attribute-empty-expression/input.js:1:1] | ||
1 | <foo bar={} /> | ||
: ^ | ||
`---- | ||
|
||
x Expression expected | ||
,-[$DIR/tests/jsx/errors/attribute-empty-expression/input.js:2:1] | ||
2 | <foo bar={} /> | ||
,-[$DIR/tests/jsx/errors/attribute-empty-expression/input.js:1:1] | ||
1 | <foo bar={} /> | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/attributes-in-fragment/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected token `=`. Expected jsx identifier | ||
,-[$DIR/tests/jsx/errors/attributes-in-fragment/input.js:2:1] | ||
2 | < key="nope"></> | ||
,-[$DIR/tests/jsx/errors/attributes-in-fragment/input.js:1:1] | ||
1 | < key="nope"></> | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/html-comment/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Legacy comments cannot be used in module code | ||
,-[$DIR/tests/jsx/errors/html-comment/input.js:2:1] | ||
2 | <!--a | ||
,-[$DIR/tests/jsx/errors/html-comment/input.js:1:1] | ||
1 | <!--a | ||
: ^^^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/issue-3523/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Rest element must be final element | ||
,-[$DIR/tests/jsx/errors/issue-3523/input.js:4:1] | ||
4 | for ({...rest, b} of [{} | ||
,-[$DIR/tests/jsx/errors/issue-3523/input.js:3:1] | ||
3 | for ({...rest, b} of [{} | ||
: ^^^^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/issue-387-1/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Rest element must be final element | ||
,-[$DIR/tests/jsx/errors/issue-387-1/input.js:2:1] | ||
2 | var {...c, d} = {}; | ||
,-[$DIR/tests/jsx/errors/issue-387-1/input.js:1:1] | ||
1 | var {...c, d} = {}; | ||
: ^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/issue-387-2/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Rest element must be final element | ||
,-[$DIR/tests/jsx/errors/issue-387-2/input.js:2:1] | ||
2 | var {...c, ...d} = {}; | ||
,-[$DIR/tests/jsx/errors/issue-387-2/input.js:1:1] | ||
1 | var {...c, ...d} = {}; | ||
: ^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/issue-387-3/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x `...` must be followed by an identifier in declaration contexts | ||
,-[$DIR/tests/jsx/errors/issue-387-3/input.js:2:1] | ||
2 | var {...{}} = {}; | ||
,-[$DIR/tests/jsx/errors/issue-387-3/input.js:1:1] | ||
1 | var {...{}} = {}; | ||
: ^^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/issue-387-4/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x assignment property is invalid syntax | ||
,-[$DIR/tests/jsx/errors/issue-387-4/input.js:2:1] | ||
2 | var a = {b = 1}; | ||
,-[$DIR/tests/jsx/errors/issue-387-4/input.js:1:1] | ||
1 | var a = {b = 1}; | ||
: ^^^^^ | ||
`---- |
8 changes: 4 additions & 4 deletions
8
crates/swc_ecma_parser/tests/jsx/errors/issue-387-5/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
x Expected ';', '}' or <eof> | ||
,-[$DIR/tests/jsx/errors/issue-387-5/input.js:2:1] | ||
2 | {a:1, b:2} | ||
,-[$DIR/tests/jsx/errors/issue-387-5/input.js:1:1] | ||
1 | {a:1, b:2} | ||
: ^ | ||
`---- | ||
|
||
Error: | ||
> This is the expression part of an expression statement | ||
,-[$DIR/tests/jsx/errors/issue-387-5/input.js:2:1] | ||
2 | {a:1, b:2} | ||
,-[$DIR/tests/jsx/errors/issue-387-5/input.js:1:1] | ||
1 | {a:1, b:2} | ||
: ^^^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/nested-fragment-unclosed/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/nested-fragment-unclosed/input.js:2:9] | ||
2 | | ||
,-[$DIR/tests/jsx/errors/nested-fragment-unclosed/input.js:1:9] | ||
1 | | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/unclosed-tag/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/unclosed-tag/input.js:2:10] | ||
2 | | ||
,-[$DIR/tests/jsx/errors/unclosed-tag/input.js:1:10] | ||
1 | | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/unicode-escape-in-identifier/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected token `你`. Expected jsx identifier | ||
,-[$DIR/tests/jsx/errors/unicode-escape-in-identifier/input.js:2:1] | ||
2 | <\u{2F804}></\u{2F804}> | ||
,-[$DIR/tests/jsx/errors/unicode-escape-in-identifier/input.js:1:1] | ||
1 | <\u{2F804}></\u{2F804}> | ||
: ^^^^^^^^^ | ||
`---- |
8 changes: 4 additions & 4 deletions
8
crates/swc_ecma_parser/tests/jsx/errors/unterminated-string/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/unterminated-string/input.js:2:12] | ||
2 | | ||
,-[$DIR/tests/jsx/errors/unterminated-string/input.js:1:12] | ||
1 | | ||
: ^ | ||
`---- | ||
|
||
x Unterminated string constant | ||
,-[$DIR/tests/jsx/errors/unterminated-string/input.js:2:1] | ||
2 | <foo bar=" | ||
,-[$DIR/tests/jsx/errors/unterminated-string/input.js:1:1] | ||
1 | <foo bar=" | ||
: ^^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/wrong-closing-tag-fragment/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/wrong-closing-tag-fragment/input.js:2:1] | ||
2 | <></something> | ||
,-[$DIR/tests/jsx/errors/wrong-closing-tag-fragment/input.js:1:1] | ||
1 | <></something> | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/wrong-closing-tag/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/wrong-closing-tag/input.js:2:1] | ||
2 | <Foo></Bar> | ||
,-[$DIR/tests/jsx/errors/wrong-closing-tag/input.js:1:1] | ||
1 | <Foo></Bar> | ||
: ^ | ||
`---- |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_parser/tests/jsx/errors/wrong-opening-tag-fragment/input.js.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
x Unexpected eof | ||
,-[$DIR/tests/jsx/errors/wrong-opening-tag-fragment/input.js:2:1] | ||
2 | <something></> | ||
,-[$DIR/tests/jsx/errors/wrong-opening-tag-fragment/input.js:1:1] | ||
1 | <something></> | ||
: ^ | ||
`---- |