◐ Shell
clean mode source ↗

BridgeJS: Fix Dictionary bridging after Stack ABI refactor by krodak · Pull Request #594 · swiftwasm/JavaScriptKit

Overview

PR #590 changed the stack storage from direction-specific variables to direction-agnostic ones, but the Dictionary support code from PR #581 was not updated accordingly, causing compilation failures.

Issue

After merging PR #590, the build fails with:

error: type 'JSGlueVariableScope' has no member 'reservedTmpRetInts'
error: type 'JSGlueVariableScope' has no member 'reservedTmpParamInts'

The Dictionary bridging code still referenced removed properties:

  • reservedTmpRetInts
  • reservedTmpParamInts

Fix

  • Updated 5 locations in JSGlueGen.swift to use the new direction-agnostic stack API
  • Updated DictionaryTypes.js snapshot to reflect the corrected code generation