Skip to content

Commit 1ce805b

Browse files
committed
show working [@@inline never]
1 parent 5adb679 commit 1ce805b

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

jscomp/test/gpr_1409_test.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,15 @@ function keys(xs, ys) {
141141
eq("File \"gpr_1409_test.ml\", line 69, characters 6-13", keys({
142142
hd: "hi",
143143
tl: /* [] */0
144-
}, Object.keys({
145-
hi: 2
146-
})), true);
144+
}, Object.keys(test3(undefined, undefined))), true);
147145

148146
eq("File \"gpr_1409_test.ml\", line 71, characters 6-13", keys({
149147
hd: "hi",
150148
tl: {
151149
hd: "open",
152150
tl: /* [] */0
153151
}
154-
}, Object.keys({
155-
open: 2,
156-
hi: 2
157-
})), true);
152+
}, Object.keys(test3(2, undefined))), true);
158153

159154
eq("File \"gpr_1409_test.ml\", line 73, characters 6-13", keys({
160155
hd: "hi",
@@ -165,11 +160,7 @@ eq("File \"gpr_1409_test.ml\", line 73, characters 6-13", keys({
165160
tl: /* [] */0
166161
}
167162
}
168-
}, Object.keys({
169-
open: 2,
170-
xx: 2,
171-
hi: 2
172-
})), true);
163+
}, Object.keys(test3(2, 2))), true);
173164

174165
Mt.from_pair_suites("Gpr_1409_test", suites.contents);
175166

jscomp/test/gpr_1409_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ external mangle : ?_open:int -> ?xx__hi:int -> hi:int -> unit -> _ = ""
4242

4343
let test2 = mangle ~hi:2 ()
4444

45-
let test3 _open xx__hi =
45+
let [@inline never] test3 _open xx__hi =
4646
(* Js.log "no inlin"; *)
4747
mangle ?_open ?xx__hi ~hi:2 ()
4848

0 commit comments

Comments
 (0)