Open
Description
The compatibility table mentions partial support for 'net/http', saying:
client only, emulated via Fetch/XMLHttpRequest APIs; node.js requires polyfill
But I'm not having any luck figuring out how to get such a polyfill to work. The API detection happens very early in the Go program initialization, such that, as far as I can tell, it is impossible to load a polyfill in time for it to be detected.
Is the only option to prepend GopherJS's output with something like var fetch = require('fetch-node');
before executing it?
Metadata
Metadata
Assignees
Labels
No labels