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
According to the specs, imported functions are the first to be assigned an index and only afterwards do the normal functions get assigned indexes.
This issue was discovered when implementing a fix for issue #25 and is created in order to track progress on this potential future bug.
The text was updated successfully, but these errors were encountered:
valexandru
changed the title
Future bug: Analyze function index offset for imported function
Future bug: Analyze function index offset for imported functions
Jul 10, 2024
Just a small observation: this does not seem to be an issue for now. In the same_type_fn implemented in pr #26, if I add an import to the wat, all tests pass.
Although the imported function seems to get the ID of 0 (for type), the functions section only deals with the functions declared in the module. As such, both functions get parsed as type of ID 1, correctly.
This does not mean the issue is fixed. We still need to be careful when actually implementing imported functions.
According to the specs, imported functions are the first to be assigned an index and only afterwards do the normal functions get assigned indexes.
This issue was discovered when implementing a fix for issue #25 and is created in order to track progress on this potential future bug.
The text was updated successfully, but these errors were encountered: