Files
codeql/javascript/ql/test/library-tests/CallGraphs/FullTest/non-strict.js

8 lines
181 B
JavaScript

(function () {
if (true) {
function foo() {
return 3;
}
}
return foo(); // this resolves to `foo` above, because we have function-scope in non-strict mode.
})();