Skip to content

Commit

Permalink
Fix caml_update_dummy
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Heuzard <hugo.heuzard@gmail.com>
  • Loading branch information
mlasson and hhugo committed Jul 5, 2023
1 parent df276a4 commit 0a0f2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

//Provides: caml_update_dummy
function caml_update_dummy (x, y) {
if( typeof y==="function" ) { x.fun = y; return 0; }
if( y.fun ) { x.fun = y.fun; return 0; }
if( typeof y==="function" ) { x.fun = y; return 0; }
var i = y.length; while (i--) x[i] = y[i]; return 0;
}

Expand Down

0 comments on commit 0a0f2c6

Please sign in to comment.