mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
c2bbdbe9d6
swc_estree_compat: - Fix stack overflow related to object patterns. swc_webpack_}ast: - Implement AST reducer.
19 lines
465 B
JavaScript
19 lines
465 B
JavaScript
export function foo (){
|
|
try {
|
|
const meta = this.meta();
|
|
// const { event, team, user } = this.props;
|
|
const b = team ? event.user : user;
|
|
|
|
if (meta && meta.p1) {
|
|
return meta.p1;
|
|
} else if (meta && meta.p2) {
|
|
return meta.p2;
|
|
} else if (meta && meta.p3) {
|
|
return meta.p3;
|
|
}
|
|
|
|
return b.p4 === u.u ? 'You' : b.u;
|
|
} catch (e) {
|
|
return 'You';
|
|
}
|
|
} |