<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65653],{56279:function(n,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/manual/latest/browser-support-polyfills",function(){return t(97896)}])},97896:function(n,o,t){"use strict";t.r(o),t.d(o,{frontmatter:function(){return s}});var e=t(85893),r=t(11151);const s={title:"Browser Support &amp; Polyfills",description:"Note on browser support in ReScript",canonical:"/docs/manual/latest/browser-support-polyfills"};function i(n){const o=Object.assign({h1:"h1",p:"p",strong:"strong",a:"a",ul:"ul",li:"li",code:"code"},(0,r.ah)(),n.components);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.h1,{id:"browser-support--polyfills",children:"Browser Support &amp; Polyfills"}),"\n",(0,e.jsxs)(o.p,{children:["ReScript compiles to JavaScript ",(0,e.jsx)(o.strong,{children:"ES5"}),", with the exception of optionally allowing to compile to ES6's module import &amp; export."]}),"\n",(0,e.jsxs)(o.p,{children:["For ",(0,e.jsx)(o.a,{href:"https://caniuse.com/#search=typed%20array",children:"old browsers"}),", you also need to polyfill TypedArray. The following standard library functions require it:"]}),"\n",(0,e.jsxs)(o.ul,{children:["\n",(0,e.jsx)(o.li,{children:(0,e.jsx)(o.code,{children:"Int64.float_of_bits"})}),"\n",(0,e.jsx)(o.li,{children:(0,e.jsx)(o.code,{children:"Int64.bits_of_float"})}),"\n",(0,e.jsx)(o.li,{children:(0,e.jsx)(o.code,{children:"Int32.float_of_bits"})}),"\n",(0,e.jsx)(o.li,{children:(0,e.jsx)(o.code,{children:"Int32.bits_of_float"})}),"\n"]}),"\n",(0,e.jsx)(o.p,{children:"If you don't use these functions, you're fine. Otherwise, it'll be a runtime failure."})]})}function l(n={}){const{wrapper:o}=Object.assign({},(0,r.ah)(),n.components);return o?(0,e.jsx)(o,Object.assign({},n,{children:(0,e.jsx)(i,n)})):i(n)}o.default=l,l.frontmatter=s}},function(n){n.O(0,[92888,49774,40179],(function(){return o=56279,n(n.s=o);var o}));var o=n.O();_N_E=o}]);</pre></body></html>