swc/ecmascript/parser/tests/jsx/errors/attribute-empty-expression/input.js.stderr
강동윤 993b77b325
Improve error messages (#980)
swc_ecma_parser:
 - Improve error messages
2020-08-21 14:57:16 +09:00

13 lines
503 B
Plaintext

error: 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:1:14
|
1 | <foo bar={} />
| ^
error: Expression expected
--> $DIR/tests/jsx/errors/attribute-empty-expression/input.js:1:13
|
1 | <foo bar={} />
| ^