1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/specs/run/ld_preload/env_arg.ts

20 lines
284 B
TypeScript

try {
new Deno.Command("curl", {
env: {
"LD_PRELOAD": "./libpreload.so",
},
}).spawn();
} catch (err) {
console.log(err);
}
try {
Deno.run({
cmd: ["curl"],
env: {
"LD_PRELOAD": "./libpreload.so",
},
});
} catch (err) {
console.log(err);
}