13 lines
No EOL
321 B
JavaScript
13 lines
No EOL
321 B
JavaScript
// props.a.b should be added as a unconditional dependency to the reactive
|
|
// scope that produces x, since it is accessed unconditionally in all cfg
|
|
// paths
|
|
|
|
function TestCondDepInDirectIfElse(props, other) {
|
|
const x = {};
|
|
if (other |> foo(%)) {
|
|
x.b = props.a.b;
|
|
} else {
|
|
x.c = props.a.b;
|
|
}
|
|
return x;
|
|
} |