Debian Codegraph @

packages/babel-plugin-transform-parameters/test/fixtures/parameters/var-same-as-param-closure/exec.js

raw
1 var x = 1
2 function foo(x, y = function () { x = 2 }) {
3 var x = 3
4 y()
5 expect(x).toBe(3);
6 }
7 foo()
8 expect(x).toBe(1);