1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/tests/specs/run/ld_preload/set_with_allow_env.ts

16 lines
280 B
TypeScript
Raw Normal View History

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