Files
react/compiler/crates/react_hermes_parser/tests/fixtures/capturing-variable-in-nested-function.js
2024-04-02 16:49:31 -07:00

10 lines
135 B
JavaScript

function component(a) {
let z = { a };
let x = function () {
(function () {
console.log(z);
})();
};
return x;
}