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
For certain common errors, such as accessing an array index that is out of bounds, the error message returned shows the location of the error in the standard library rather than the location of the code that caused the error.
Steps to reproduce
Consider this user code, in a file at /assembly/index.ts:
exportfunctiontest(): i32{consta: i32[]=[0,1,2];consti=a[3];// error should occur herereturni;}
When invoked by the host, the error given is:
abort: Index out of range in ~lib/array.ts(114:42)
Bug description
For certain common errors, such as accessing an array index that is out of bounds, the error message returned shows the location of the error in the standard library rather than the location of the code that caused the error.
Steps to reproduce
Consider this user code, in a file at
/assembly/index.ts
:When invoked by the host, the error given is:
Which is here, but IMHO not very useful.
I would expect:
AssemblyScript version
v0.27.27
The text was updated successfully, but these errors were encountered: