aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/javascript.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/javascript.zig')
-rw-r--r--src/bun.js/javascript.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig
index 01f6383af..fc2bd7a05 100644
--- a/src/bun.js/javascript.zig
+++ b/src/bun.js/javascript.zig
@@ -766,6 +766,14 @@ pub const VirtualMachine = struct {
return debugger.next_debugger_id;
}
+ pub fn hotMap(this: *VirtualMachine) ?*JSC.RareData.HotMap {
+ if (this.hot_reload != .hot) {
+ return null;
+ }
+
+ return this.rareData().hotMap(this.allocator);
+ }
+
pub var has_created_debugger: bool = false;
pub const Debugger = struct {