mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
384 B
JavaScript
18 lines
384 B
JavaScript
function global() {return;}
|
|
|
|
(function(window) {
|
|
window.global = function (x) {return;};
|
|
})(this);
|
|
|
|
global(x); // OK: might refer to function on line 4
|
|
|
|
function otherglobal() {return;}
|
|
|
|
var o = {
|
|
otherglobal: function (x) {return;}
|
|
};
|
|
|
|
otherglobal(x); // NOT OK: can never refer to function on line 12
|
|
otherglobal.call(null, x); // NOT OK
|
|
otherglobal.call(null, x, y); // NOT OK
|