Skip to content

Commit 5adb679

Browse files
committed
show inline and never inline later
1 parent dbff2fc commit 5adb679

File tree

3 files changed

+124
-116
lines changed

3 files changed

+124
-116
lines changed

jscomp/main/builtin_cmj_datasets.ml

Lines changed: 111 additions & 111 deletions
Large diffs are not rendered by default.

jscomp/test/gpr_1409_test.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ var test2 = {
7575
};
7676

7777
function test3(_open, xx__hi) {
78-
console.log("no inlin");
7978
var tmp = {
8079
hi: 2
8180
};
@@ -142,15 +141,20 @@ function keys(xs, ys) {
142141
eq("File \"gpr_1409_test.ml\", line 69, characters 6-13", keys({
143142
hd: "hi",
144143
tl: /* [] */0
145-
}, Object.keys(test3(undefined, undefined))), true);
144+
}, Object.keys({
145+
hi: 2
146+
})), true);
146147

147148
eq("File \"gpr_1409_test.ml\", line 71, characters 6-13", keys({
148149
hd: "hi",
149150
tl: {
150151
hd: "open",
151152
tl: /* [] */0
152153
}
153-
}, Object.keys(test3(2, undefined))), true);
154+
}, Object.keys({
155+
open: 2,
156+
hi: 2
157+
})), true);
154158

155159
eq("File \"gpr_1409_test.ml\", line 73, characters 6-13", keys({
156160
hd: "hi",
@@ -161,7 +165,11 @@ eq("File \"gpr_1409_test.ml\", line 73, characters 6-13", keys({
161165
tl: /* [] */0
162166
}
163167
}
164-
}, Object.keys(test3(2, 2))), true);
168+
}, Object.keys({
169+
open: 2,
170+
xx: 2,
171+
hi: 2
172+
})), true);
165173

166174
Mt.from_pair_suites("Gpr_1409_test", suites.contents);
167175

jscomp/test/gpr_1409_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ external mangle : ?_open:int -> ?xx__hi:int -> hi:int -> unit -> _ = ""
4343
let test2 = mangle ~hi:2 ()
4444

4545
let test3 _open xx__hi =
46-
Js.log "no inlin";
46+
(* Js.log "no inlin"; *)
4747
mangle ?_open ?xx__hi ~hi:2 ()
4848

4949
let test4 _open xx__hi =

0 commit comments

Comments
 (0)