emscripten-core/emscripten

preamble.js: emcc-generated functions have length 0

Open

#14.554 aberto em 29 de jun. de 2021

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)C++ (3.519 forks)batch import
help 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

echo >test.c 'int foo (int x) { return 0; }
' &&
echo >test.js 'assert (
_foo .length == 01,
[ '\''foo has'\'',
_foo .length,
'\''arguments'\''
] .join ('\'' '\''
))' &&
emcc test.c --post-js test.js -sEXPORTED_FUNCTIONS=_foo &&
node a.out
Assertion failed: foo has 0 arguments

Guia do colaborador