I've never seen that. What makes you think it's asking for your location?
Just asked on my PC, I'm on Google Chrome. Never saw that as well, made me curious.
https://news.ycombinator.com/hn.js is quite small and I don't see any related code. Any chance it's something that gets inserted by a browser plugin or (worst case) ISP?