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
It's hard to pinpoint exactly what the problem is, but it looks like RTrace is reporting a duplicate allocation for some reason.
describe("an error",()=>{it("should cause a duplicate allocation",()=>{letresult=newArray<string>(0);letsource="1234567890";letbuff=changetype<ArrayBuffer>(source.toUTF8());letlen=buff.byteLength-1;letptr=changetype<usize>(buff);for(leti=0;i<len;i++){result.push(String.fromCharCode(<i32>load<u8>(ptr+i)));}});});
This as-pect testing suite reproduces the error (because I needed to bootstrap the RTrace interface to get the error to report).
I can't paste the entire wat file output here, but this is it with -O3 optimization.
It's hard to pinpoint exactly what the problem is, but it looks like RTrace is reporting a duplicate allocation for some reason.
This
as-pect
testing suite reproduces the error (because I needed to bootstrap the RTrace interface to get the error to report).I can't paste the entire wat file output here, but this is it with
-O3
optimization.https://gist.github.com/jtenner/645c8edc7f0795d8ca6e225841e8114a
The text was updated successfully, but these errors were encountered: