emscripten-core/emscripten

WebIDL + JSImplementation + DOMString

Ouverte

#10 705 ouverte le 17 mars 2020

 (2 commentaires) (0 réaction) (0 personne assignée)C++ (3 519 forks)batch import
good first bughelp wanted

Métriques du dépôt

Stars
 (27 361 étoiles)
Métriques de merge PR
 (Merge moyen 19j 10h) (147 PRs mergées en 30 j)

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.

Guide contributeur