diff --git a/demos/dioxus/assets/dioxus/snippets/dioxus-interpreter-js-603636eeca72cf05/inline0.js b/demos/dioxus/assets/dioxus/snippets/dioxus-interpreter-js-603636eeca72cf05/inline0.js index 0a825db5..228aa594 100644 --- a/demos/dioxus/assets/dioxus/snippets/dioxus-interpreter-js-603636eeca72cf05/inline0.js +++ b/demos/dioxus/assets/dioxus/snippets/dioxus-interpreter-js-603636eeca72cf05/inline0.js @@ -163,19 +163,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags; function truthy(val) { return val === "true" || val === true; } - let u32buf,u32bufp;const attr = []; - let attr_tmp1, attr_tmp2; - function get_attr() { - attr_tmp2 = u8buf[u8bufp++]; - if(attr_tmp2 & 128){ - attr_tmp1=s.substring(sp,sp+=u8buf[u8bufp++]); - attr[attr_tmp2&4294967167]=attr_tmp1; - return attr_tmp1; - } - else{ - return attr[attr_tmp2&4294967167]; - } - }const ns_cache = []; + let u32buf,u32bufp;const ns_cache = []; let ns_cache_tmp1, ns_cache_tmp2; function get_ns_cache() { ns_cache_tmp2 = u8buf[u8bufp++]; @@ -187,7 +175,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags; else{ return ns_cache[ns_cache_tmp2&4294967167]; } - }let u8buf,u8bufp;let s = "";let lsp,sp,sl; let c = new TextDecoder();const evt = []; + }let s = "";let lsp,sp,sl; let c = new TextDecoder();let u8buf,u8bufp;const evt = []; let evt_tmp1, evt_tmp2; function get_evt() { evt_tmp2 = u8buf[u8bufp++]; @@ -199,8 +187,20 @@ let m,p,ls,d,t,op,i,e,z,metaflags; else{ return evt[evt_tmp2&4294967167]; } + }const attr = []; + let attr_tmp1, attr_tmp2; + function get_attr() { + attr_tmp2 = u8buf[u8bufp++]; + if(attr_tmp2 & 128){ + attr_tmp1=s.substring(sp,sp+=u8buf[u8bufp++]); + attr[attr_tmp2&4294967167]=attr_tmp1; + return attr_tmp1; + } + else{ + return attr[attr_tmp2&4294967167]; + } } - let field,len,ns,bubbles,id,ptr,event_name,value; + let ns,field,len,bubbles,value,id,event_name,ptr; export function create(r){ d=r; } @@ -216,10 +216,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags; if ((metaflags>>>3)&1){ u32buf=new Uint32Array(m.buffer,m.getUint32(d+3*4,true)) } - u32bufp=0;if ((metaflags>>>5)&1){ - u8buf=new Uint8Array(m.buffer,m.getUint32(d+5*4,true)) - } - u8bufp=0;if (metaflags&1){ + u32bufp=0;if (metaflags&1){ lsp = m.getUint32(d+1*4,true); } if ((metaflags>>>2)&1) { @@ -245,7 +242,10 @@ let m,p,ls,d,t,op,i,e,z,metaflags; s = c.decode(new DataView(m.buffer, lsp, sl)); } } - sp=0; + sp=0;if ((metaflags>>>5)&1){ + u8buf=new Uint8Array(m.buffer,m.getUint32(d+5*4,true)) + } + u8bufp=0; for(;;){ op=m.getUint32(p,true); p+=4; diff --git a/demos/dioxus/assets/dioxus/syntastica-dioxus-demo_bg.wasm b/demos/dioxus/assets/dioxus/syntastica-dioxus-demo_bg.wasm index 93e58d42..72c15f43 100644 Binary files a/demos/dioxus/assets/dioxus/syntastica-dioxus-demo_bg.wasm and b/demos/dioxus/assets/dioxus/syntastica-dioxus-demo_bg.wasm differ diff --git a/js/functions/highlight.html b/js/functions/highlight.html index 5877e1e5..bcd20e80 100644 --- a/js/functions/highlight.html +++ b/js/functions/highlight.html @@ -53,7 +53,7 @@

Returns string +
  • Defined in index.ts:83
  • +
  • Defined in index.ts:13
  • +
  • Defined in index.ts:8
  • The Language type.

    +
  • Defined in index.ts:161
  • +
  • Defined in index.ts:215
  • +
  • Defined in index.ts:152
  • \ No newline at end of file