We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0691d commit 941c9d3Copy full SHA for 941c9d3
jscomp/core/js_dump.ml
@@ -868,7 +868,7 @@ and expression_desc cxt ~(level:int) f x : cxt =
868
| true, 1 -> Js_op.Lit Literals.tl
869
| _ ->
870
Js_op.Lit ("_" ^ string_of_int i)) , e )
871
- (if !Js_config.debug then
+ (if !Js_config.debug && not is_cons then
872
[name_symbol, E.str p.name]
873
else []) in
874
if p.num_nonconst = 1 then
jscomp/test/debug_mode_value.js
@@ -7,5 +7,11 @@ var u = {
7
[Symbol.for("name")]: "A"
8
};
9
10
+var h = {
11
+ hd: 1,
12
+ tl: /* [] */0
13
+};
14
+
15
exports.u = u;
16
+exports.h = h;
17
/* No side effect */
jscomp/test/debug_mode_value.ml
@@ -12,3 +12,4 @@
type t = A of int * int
let u = A (1,2)
+let h = [1]
0 commit comments