Better error for undefined memory here

This commit is contained in:
Jarred Sumner
2022-06-20 04:26:11 -07:00
committed by Jarred Sumner
parent 9e4c11e280
commit 07c010a377

View File

@@ -357,7 +357,9 @@ pub const EventLoop = struct {
finished += 1;
vm_.active_tasks -|= 1;
},
else => unreachable,
else => if (Environment.allow_assert) {
bun.Output.prettyln("\nUnexpected tag: {s}\n", .{@tagName(task.tag())});
} else unreachable,
}
}