Skip to content

Commit f3c88f2

Browse files
committed
fix: do not release debug helpers
1 parent 0c782af commit f3c88f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/jsshaker/src/builtins/globals/constants.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ impl Builtins<'_> {
9393

9494
// Internationalization
9595
"Intl" => factory.unknown,
96+
});
9697

97-
// Debug helper (non-standard)
98+
// Debug helpers (non-standard)
99+
#[cfg(debug_assertions)]
100+
init_map!(self.globals, {
98101
"$$DEBUG$$" => factory.implemented_builtin_fn(
99102
"$$DEBUG$$",
100103
|analyzer, _dep, _this, args| {

0 commit comments

Comments
 (0)