swiftwasm / swiftwasm/JavaScriptKit

BridgeJS: SwiftSyntax's BasicFormat usage in code generators takes too much time

未關閉
#512 5 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@kateinoigakukun 已經在處理了。

開始於 2026年2月4日。

bridgejs
主要語言
Swift
星號
986
分支
76
平均合併
21 小時 11 分鐘
30 天內合併 PR
4

描述

Paste following TypeScript code into PlayBridgeJS in bridge-js.d.ts tab (or open this link https://swiftwasm.org/JavaScriptKit/PlayBridgeJS/?code=H4sIAAAAAAAAE6tWKi7PTCtRslLS11fwL0jNU0hIKspMSU%2FVzSrWS9ErKU5QKElMUtJRSikpBipKrSjILypRSCvNSy7JzM9TSE8tcU7MK0ss1qiwUiguKcrMS9e0UvAI8fWBCLvmpOam5pVYK9UCANyqcRdpAAAA&enc=gzip-b64)

export function getCanvas(x: string): HTMLCanvasElement;

this will make the page hang for long time (a minute or two), then producing an error displayed above the text input that's not actionable:

[...]
JavaScriptKit/node_modules/typescript/lib/lib.dom.d.ts:8654:4: warning: Unknown non-nominal type: IDBObjectStore | IDBIndex | IDBCursor
JavaScriptKit/node_modules/typescript/lib/lib.dom.d.ts:377:4: warning: Unknown non-nominal type: boolean | MediaTrackConstraints
JavaScriptKit/node_modules/typescript/lib/lib.dom.d.ts:8545:4: warning: Unknown non-nominal type: IDBValidKey | IDBKeyRange
BridgeJSTool/ImportTS.swift:75: Assertion failed: For now, we require a single parameter to be lowered to a single Wasm core type
[5/8] Import TypeScript API
error: Plugin ended with exit code 1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。