-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #54425 (fix(54411): Compiled code contain j...) into releas…
…e-5.1 (#54489) Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
- Loading branch information
1 parent
7275ded
commit b547906
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//// [a.tsx] | ||
declare const React: any; | ||
|
||
const t1 = <div {...<span />} />; | ||
const t2 = <div {...<span className="foo" />} />; | ||
|
||
|
||
//// [a.js] | ||
const t1 = React.createElement("div", Object.assign({}, React.createElement("span", null))); | ||
const t2 = React.createElement("div", Object.assign({}, React.createElement("span", { className: "foo" }))); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
=== /a.tsx === | ||
declare const React: any; | ||
>React : Symbol(React, Decl(a.tsx, 0, 13)) | ||
|
||
const t1 = <div {...<span />} />; | ||
>t1 : Symbol(t1, Decl(a.tsx, 2, 5)) | ||
|
||
const t2 = <div {...<span className="foo" />} />; | ||
>t2 : Symbol(t2, Decl(a.tsx, 3, 5)) | ||
>className : Symbol(className, Decl(a.tsx, 3, 25)) | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== /a.tsx === | ||
declare const React: any; | ||
>React : any | ||
|
||
const t1 = <div {...<span />} />; | ||
>t1 : error | ||
><div {...<span />} /> : error | ||
>div : any | ||
><span /> : error | ||
>span : any | ||
|
||
const t2 = <div {...<span className="foo" />} />; | ||
>t2 : error | ||
><div {...<span className="foo" />} /> : error | ||
>div : any | ||
><span className="foo" /> : error | ||
>span : any | ||
>className : string | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @jsx: react | ||
// @target: es2015 | ||
// @filename: /a.tsx | ||
|
||
declare const React: any; | ||
|
||
const t1 = <div {...<span />} />; | ||
const t2 = <div {...<span className="foo" />} />; |