You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let _u = if bool_of_string "" then "" else "" in print_int 0
With BuckleScript 1.8.0 (Using OCaml4.02.3+BS ) this compiles to
// Generated by BUCKLESCRIPT VERSION 1.8.0, PLEASE EDIT WITH CARE
'use strict';
var Pervasives = require("bs-platform/lib/js/pervasives.js");
Pervasives.print_int(0);
/* Not a pure module */
Consider the program:
With BuckleScript 1.8.0 (Using OCaml4.02.3+BS ) this compiles to
thus erroneously removing the expected
Invalid_argument "bool_of_string"
exception, that OCaml's bytecode backend produces (and required by the specification http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html).The text was updated successfully, but these errors were encountered: