mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
rm temp
This commit is contained in:
parent
575513e056
commit
0d34a40acc
1 changed files with 0 additions and 12 deletions
12
a.mjs
12
a.mjs
|
@ -1,12 +0,0 @@
|
|||
import vm from "node:vm";
|
||||
|
||||
globalThis.globalVar = 3;
|
||||
|
||||
const context = { globalVar: 1 };
|
||||
vm.createContext(context);
|
||||
|
||||
vm.runInContext("globalVar *= 2;", context);
|
||||
|
||||
console.log(context);
|
||||
|
||||
console.log(global.globalVar);
|
Loading…
Add table
Reference in a new issue