emscripten-core/emscripten

WebIDL + JSImplementation + DOMString

開放

#10,705 建立於 2020年3月17日

 (2 則留言) (0 個反應) (0 位負責人)C++ (3,519 個分叉)batch import
good first bughelp wanted

倉庫指標

星標
 (27,361 顆星)
PR 合併指標
 (平均合併 19天 10小時) (30 天內合併 147 個 PR)

描述

The following IDL does not generate correct bindings:

interface CTest
{
  void CTest();
  void OnStartElement([Const] DOMString pszName, [Const] DOMString[] papszAttrs);
};

[JSImplementation = "CTest"]
interface CTestJS {
  void CTestJS();
  void OnStartElement([Const] DOMString pszName, [Const] DOMString[] papszAttrs);
};

Specifically both pszName + papszAttrs end up in the JS code as pointers.

貢獻者指南