The point would be to preserve a fairly large amount of internet culture from the 90's and 00's. Ruffle.js which has already been mentioned utilizes the fantastic JS sandbox already present, no need to create a new one. The browsers just have to support it by default.
I don't know enough about the web to determine whether it would be better to emulate Flash within the JS sandbox, or virtualize the Flash runtime itself