Being asked every other day whether it's possible to remove odd parts from JavaScript, I'm wondering: Would you actually use a stripped down version of JavaScript w/o all the things that cause trouble for JSVMs? 
-
Show this thread
-
Things that come to mind include: - Array-indexed properties on prototypes - Array-indexed properties with non-default attributes - Methods and accessors limited to prototypes - immutable prototype and __proto__ links - only classes are constructors - only strict mode
10 replies 4 retweets 41 likesShow this thread -
Replying to @bmeurer
that would be nice. allow websites to target a modern baseline which removes the legacy stuff from the JSVM.
1 reply 0 retweets 0 likes -
Replying to @danielgut
I doubt that this would fly for browsers. I'm semi-optimistic that one could do this as a special version of Node.
1 reply 0 retweets 1 like -
Replying to @bmeurer
probably the adoption rate wouldn't be great if the tooling doesn't help here. but let's say babel transpiles to a modern baseline and enables the flag to switch the JSVM.
1 reply 1 retweet 1 like -
Replying to @danielgut
You mean like a meta tag on the page that enables the new engine? I doubt that this would fly.
2 replies 0 retweets 0 likes -
Replying to @bmeurer @danielgut
One way I can think of upgrading on the web is to build a JSVM on top of WASM and bundle that with your code. Then you don't rely on the browser built-in engine anymore.
2 replies 3 retweets 3 likes -
Replying to @bmeurer @danielgut
Oh god no, don't give
@slightlylate even more Web bloat to complain about.2 replies 0 retweets 2 likes
Yeah, I think the only way to make this work is a global pragma (meta tag, doctype, header, etc.). We've talked about something similar to disable some expensive parsing costs.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.