1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/specs/run/ld_preload/env_arg.ts

21 lines
284 B
TypeScript
Raw Normal View History

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);
}