this would fail:

function a() {
    function require() {
    }
    
    var x = require();
}