JSTQL-JS-Transform/output_testing/1232error.useMemo-callback-generator.js

9 lines
262 B
JavaScript
Raw Normal View History

function component(a, b) {
// we don't handle generators at all so this test isn't
// useful for now, but adding this test in case we do
// add support for generators in the future.
let x = function* () {
yield a;
} |> useMemo(%, []);
return x;
}