12

Fuck you Edge!
I can name a var "screen", what is wrong with you? I don't care you have an Object named Screen, they are not the same and I rather use my own, thank you. It's not like I'm "let var=" on you, you piece of shit!

Comments
  • 1
    Im pretty sure there is also window["screen"] in js, not just capital S.
  • 0
    @WIPocket
    This happened just on edge, it worked fine even on ie11 and safari.
    It used an object similar to window, but didn't had any of the attributes I needed, nstead of my one 😀 renaming the object fixed it
  • 0
    Some native objects are "overrideable". Not sure if its official, but some browers just allow it.
    Also, were you defining it on global scope? If not there shouldnt be a problem unless(cough) Edge sucks and doesnt know its scopes.
  • 1
    @WIPocket
    It was 😀 I wasn't even trying to override, I wasn't aware of its existence, the name suited me.
Add Comment