emscripten-core/emscripten

WebIDL + JSImplementation + DOMString

Open

#10.705 aberto em 17 de mar. de 2020

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)C++ (3.519 forks)batch import
good first bughelp wanted

Métricas do repositório

Stars
 (27.361 stars)
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