Skip to content

Commit

Permalink
fix: return JS null value from Expression.null
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 16, 2021
1 parent b9c485a commit e3dd141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/expression.ml
Expand Up @@ -179,8 +179,7 @@ let tuple_extract wasm_mod tuple index =
let pop wasm_mod typ =
meth_call global##.binaryen "_BinaryenPop" [| inject wasm_mod; inject typ |]

(* TODO: Figure this out *)
let null () = Obj.magic ()
let null () = pure_js_expr "null"

let print expr =
let text = meth_call global##.binaryen "emitText" [| inject expr |] in
Expand Down

0 comments on commit e3dd141

Please sign in to comment.