Skip to content

Commit

Permalink
Must not pass node of a different sharing layer due to WasmLanguage.g…
Browse files Browse the repository at this point in the history
…et(Node).
  • Loading branch information
woess committed Oct 18, 2023
1 parent 9ec4438 commit de2a4c2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ Object execute(Object[] arguments,
// At this point the multi-value stack has already been populated, therefore, we don't
// have to check the size of the multi-value stack.
if (result == WasmConstant.MULTI_VALUE) {
return multiValueStackAsArray(WasmLanguage.get(self));
WasmLanguage language = context.language();
assert language == WasmLanguage.get(null);
return multiValueStackAsArray(language);
}
return result;
} finally {
Expand Down

0 comments on commit de2a4c2

Please sign in to comment.