Make hack javascript work with js_of_ocaml 2.0
Summary: Looks like js_of_ocaml 2.0 changed two things:
-Added some sort of scoping where we were exporting functions
-Made new MlString break.
Changes:
-Add self. where it was needed to make the stuff we were exporting global. self works in a window or a webworker. Tested that.
-instead of using new MlString, I exported the function that converts js strings to MlStrings and used it where we used to.
ihavenoideawhatimdoing
but it works ok now
Reviewed By: @jwatzman
Differential Revision:
D1274773