emscripten-core / emscripten-core/emscripten

WebIDL + JSImplementation + DOMString

Open
#10,705 2 comments 0 reactions 0 assignees View on GitHub
good first bug help wanted
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.