Skip to content

Commit 209c8fe

Browse files
committed
Add default globals
1 parent 88183f0 commit 209c8fe

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/index.js

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async function main() {
2121
const result = await vm.runInNewContext(
2222
fn,
2323
{
24+
...global,
2425
github,
2526
console,
2627
context,

0 commit comments

Comments
 (0)