emscripten-core/emscripten

WebIDL + JSImplementation + DOMString

Aberta

#10.705 aberto em 17 de mar. de 2020

 (2 comentários) (0 reação) (0 responsável)C++ (3.519 forks)batch import
good first bughelp wanted

Métricas do repositório

Stars
 (27.361 estrelas)
Métricas de merge de PR
 (Mesclagem média 19d 10h) (147 fundiu PRs em 30d)

Description

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.

Guia do colaborador