3 ms·
Am I misunderstanding this? You need JS to load the WASM module anyways, what does "requiring JS" means here?
by msoad 3y ago
Am I misunderstanding this? You need JS to load the WASM module anyways, what does "requiring JS" means here?
- ploxiln 3y agoIt means that urllib3 (python code) isn't actually making the http request (it's not making the tcp connection, tls auth, writing the request, or serializing the request headers ...) It may be better to describe this as a "shim". Any python code that depended on urllib3 is now transparently shimmed in browser context to use the fetch-api instead. Which is useful.
- zarzavat 3y agoThis is definitely out of scope for web browsers. The security implications of allowing arbitrary sockets are prohibitive. To do something like that then you’re going to need a different environment with a different set of security guarantees and expectations, more like a shell where the user is responsible for vouching for the code’s trustworthiness.
- canadiantim 3y agoYou’re right. It just reflected a momentary misunderstanding of mine. WASM still requires JS.