Fix crash when macros return a Promise

This commit is contained in:
Jarred Sumner
2022-12-01 23:46:18 -08:00
parent cb36b4d1ab
commit 7a158e68ae
4 changed files with 153 additions and 116 deletions

View File

@@ -433,6 +433,8 @@ pub const VirtualMachine = struct {
modules: ModuleLoader.AsyncModule.Queue = .{},
aggressive_garbage_collection: GCLevel = GCLevel.none,
gc_controller: JSC.GarbageCollectionController = .{},
pub const GCLevel = enum(u3) {
none = 0,
mild = 1,