3 ms·
Well, window is the default global scope, so it can't be sealed or any top-level declarations wouldn't work. You'd have to create a new global scope to be able
by moron4hire 5y ago
Well, window is the default global scope, so it can't be sealed or any top-level declarations wouldn't work. You'd have to create a new global scope to be able to seal window, and that would break large swaths of the web.
- dylan604 5y ago>and that would break large swaths of the web. I'm thinking that might not be as bad of a thing as you might be making it out as. Sometimes, you just need to light a match and watch certain things burn. Allow their ashes to be fertilizer for the regrowth period. Unfortunately, in the world of today, I think the underworld of slimey devs would fill the void faster, and implement "new" that appeals to their needs.
- moron4hire 5y agoAnd what of all those government websites that don't get updated very often, with forms that people rely on to get access to benefits? Something as simple as client-side pre-form-validation would break access and it could be months before anyone does anything about it. Sure, you could argue that the various government bureaus should be better about updating stuff, but that's really just not going to happen.
- eitland 5y agoI've been proposing the same approach as Mozilla took with asm a few years ago: Specify a subset of the language and guarantee that if on sticks to this subset it will run in a simplified and heavily optimized branch of the code.