ggrossetie / unxhr

Synchronous and asynchronous XMLHttpRequest for Node
MIT License
0 stars 3 forks source link

Fix to work in VS Code context #100

Closed apupier closed 1 year ago

apupier commented 1 year ago

it avoids to rely on process.execPath which resolves to code binary in VS Code context although it expects the node binary

relates to asciidoctor/asciidoctor-vscode#731

apupier commented 1 year ago

first attempt but resulting in this kind of error:

Uncaught Error: spawnSync /home/apupier/git/unxhr/lib/request.js EACCES

EDIT: I guess I misunderstood how execFileSync is working and the file is not a script but any executable