-
-
Notifications
You must be signed in to change notification settings - Fork 673
Closed
Description
It seems storing for static arrays like Array<u8>
has wrong element offset.
Example:
const array: u8[] = [1, 2];
console.logi(array[0]);
console.logi(array[1]);
console.logi(array[2]); // just need for explain
console.logi(array[3]); // just need for explain
console.logi(array[4]); // just need for explain
Output:
1
0
0
0
2
Expected:
1
2
wast:
(data (i32.const 8) "\10\00\00\00\02\00\00\00\08\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00"))
Full example in WebAssembly Studio
Metadata
Metadata
Assignees
Labels
No labels