mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
8 lines
175 B
JavaScript
8 lines
175 B
JavaScript
function foo(props) {
|
|
let x, y;
|
|
({ x, y } = { x: props.a, y: props.b });
|
|
console.log(x); // prevent DCE from eliminating `x` altogether
|
|
x = props.c;
|
|
return x + y;
|
|
}
|