mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
18 lines
389 B
JavaScript
18 lines
389 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); // $ Alert - can never refer to function on line 12
|
|
otherglobal.call(null, x); // $ Alert
|
|
otherglobal.call(null, x, y); // $ Alert
|