Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ru] Error in WebAssembly/C_to_Wasm example #24371

Open
diadiavova opened this issue Nov 5, 2024 · 1 comment · May be fixed by #24392
Open

[ru] Error in WebAssembly/C_to_Wasm example #24371

diadiavova opened this issue Nov 5, 2024 · 1 comment · May be fixed by #24392
Assignees
Labels
l10n-ru Issues related to Russian content.

Comments

@diadiavova
Copy link

MDN URL

https://developer.mozilla.org/ru/docs/WebAssembly/C_to_Wasm

О какой части статьи или абзаце идёт речь?

Вызов пользовательской функции, определённой в Си

Какая информация оказалась неверной, бесполезной или неполной?

Команда компиляции примера
emcc -o hello3.html hello3.c -O3 -s WASM=1 --shell-file html_template/shell_minimal.html -s NO_EXIT_RUNTIME=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall"]'
Здесь кавычка перемещена и в таком виде не компилируется.

Как бы вы исправили?

В англоязычной версии рабочий код
emcc -o hello3.html hello3.c --shell-file html_template/shell_minimal.html -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']"

Есть ли у вас какие-либо подтверждающие ссылки?

No response

Хотите добавить что-то ещё?

No response

MDN metadata

Page report details
@diadiavova diadiavova added l10n-ru Issues related to Russian content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 5, 2024
@leon-win leon-win self-assigned this Nov 7, 2024
@leon-win leon-win linked a pull request Nov 7, 2024 that will close this issue
@leon-win leon-win changed the title Ошибка в коде [ru] Error in WebAssembly/C_to_Wasm example Nov 7, 2024
@leon-win
Copy link
Member

leon-win commented Nov 7, 2024

Привет, @diadiavova!

Спасибо за внимательность и указание на ошибку!

Я обновил перевод этой страницы, там было много других устаревших примеров, после влития #24392 страница обновится на сайте.

@yin1999 yin1999 removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ru Issues related to Russian content.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants