Files
2025-02-28 13:27:28 +01:00

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