If the logic is "pass window always if available", then the first parameter from https://github.com/jquery/jquery/pull/1476/files#diff-f1ebe0c2ce0a72c9131e854556761642L15 maybe shouldn't be named `global` as `this !== global` in node as you said. I don't have a better idea for now, though.