main
js 8 lines 231 Bytes
Raw
1 // @enableNewMutationAliasingModel:false
2 function Component() {
3 const foo = () => {
4 someGlobal = true;
5 };
6 // spreading a function is weird, but it doesn't call the function so this is allowed
7 return <div {...foo} />;
8 }