blob: 6c76e8fac7a7475767f3ce53cac9b1c8aa7b4f09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
var Button = () => {
return <div className="button">Button!</div>;
};
var Bar = () => {
return (
<div prop={1}>
Plain text
<div>
← A child div
<Button>Red</Button>
</div>
</div>
);
};
// It failed while parsing this function.
// The bug happened due to incorrectly modifying scopes_in_order
// The fix was using tombstoning instead of deleting
// The fix also resolved some performance issues.
var Baz = () => {
return (
<div prop={1}>
Plain text
<div>
← A child div
<Button>Red</Button>
</div>
</div>
);
};
|