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
exportclassJValue{privatebyteLength: i32;publicstaticNull: JNull=newJNull();constructor(){this.byteLength=0;}}exportclassJNullextendsJValue{constructor(){super();}// remove this line}leta=newJNull();
When JNull is constructed without the constructor defined, it results in a release. I used -O3 to optimize the code so it was less confusing to follow. Here is the wat output without the constructor:
[Error]: Orphaned Increment Error An orphaned increment has occurred at block: 3600
[Stack]: at ~lib/rt/pure/increment (wasm-function[42]:58)
at ~lib/rt/pure/__retain (wasm-function[43]:14)
at start:assembly/__tests__/JNull.spec~anonymous|0~anonymous|3 (wasm-function[84]:10)
at node_modules/as-pect/assembly/internal/call/__call (wasm-function[91]:7)
When adding the constructor, it results in a more optimized output without the release.
Way to reproduce:
When
JNull
is constructed without the constructor defined, it results in a release. I used-O3
to optimize the code so it was less confusing to follow. Here is the wat output without the constructor:When adding the constructor, it results in a more optimized output without the release.
The text was updated successfully, but these errors were encountered: