Skip to content

Commit 3d4e65c

Browse files
committed
Runtime: #529
1 parent 8400342 commit 3d4e65c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

runtime/jslib_js_of_ocaml.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ function caml_js_new(c, a) {
9494
//Requires: caml_js_from_array
9595
function caml_ojs_new_arr(c, a) {
9696
switch (a.length) {
97-
case 1: return new c;
98-
case 2: return new c (a[0]);
99-
case 3: return new c (a[0],a[1]);
100-
case 4: return new c (a[0],a[1],a[2]);
101-
case 5: return new c (a[0],a[1],a[2],a[3]);
102-
case 6: return new c (a[0],a[1],a[2],a[3],a[4]);
103-
case 7: return new c (a[0],a[1],a[2],a[3],a[4],a[5]);
104-
case 8: return new c (a[0],a[1],a[2],a[3],a[4],a[5],a[6]);
97+
case 0: return new c;
98+
case 1: return new c (a[0]);
99+
case 2: return new c (a[0],a[1]);
100+
case 3: return new c (a[0],a[1],a[2]);
101+
case 4: return new c (a[0],a[1],a[2],a[3]);
102+
case 5: return new c (a[0],a[1],a[2],a[3],a[4]);
103+
case 6: return new c (a[0],a[1],a[2],a[3],a[4],a[5]);
104+
case 7: return new c (a[0],a[1],a[2],a[3],a[4],a[5],a[6]);
105105
}
106106
function F() { return c.apply(this, a); }
107107
F.prototype = c.prototype;

0 commit comments

Comments
 (0)