Version
v18.2.0
Platform
Microsoft Windows [Version 10.0.14393]
Subsystem
vm
What steps will reproduce the bug?
$cattest.jsvara="direct";deletea;console.log(a);varvm=require('vm');vm.runInThisContext(`var b = "this";delete b;console.log(b);`);vm.runInContext(`var c = "new";delete c;console.log(c);`,vm.createContext({console: console}));How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
$ node -vv4.9.1v6.17.1v8.17.0v10.24.1v12.22.12v14.19.1v16.14.2v18.0.0
$ cat test.js | nodedirectthisnew
What do you see instead?
$ node -vv18.2.0
$ cat test.js | nodedirectthisundefined
Additional information
No response
Version
v18.2.0
Platform
Microsoft Windows [Version 10.0.14393]
Subsystem
vm
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
What do you see instead?
Additional information
No response