mirror of
https://github.com/github/codeql.git
synced 2026-03-20 14:36:46 +01:00
15 lines
278 B
JavaScript
15 lines
278 B
JavaScript
function global() {}
|
|
|
|
(function(window) {
|
|
window.global = function (x) {};
|
|
})(this);
|
|
|
|
global(x); // OK: might refer to function on line 4
|
|
|
|
function otherglobal() {}
|
|
|
|
var o = {
|
|
otherglobal: function (x) {}
|
|
};
|
|
|
|
otherglobal(x); // NOT OK: can never refer to function on line 12
|