1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibWasm: Do not allow self-referencial globals

This is written in a somewhat roundabout way in the spec, so the
initial implementation did not implement it correctly.
This commit is contained in:
Ali Mohammad Pur 2023-07-03 12:25:18 +03:30 committed by Ali Mohammad Pur
parent 4f0f1c7c72
commit 8668851cb1
2 changed files with 15 additions and 1 deletions

View file

@ -334,6 +334,7 @@ private:
Vector<ChildScopeKind> m_entered_scopes;
Vector<BlockDetails> m_block_details;
Vector<FunctionType> m_entered_blocks;
Vector<GlobalType> m_globals_without_internal_globals;
};
}