emscripten-core / emscripten-core/emscripten

compile successfully, and running normal on browser, but the result is wrong.

Open
#12,849 5 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

a simple c file to get the hostname and ip of the current machine.
after compiled and running on the web, the result is wrong. pls check below:

-----------------------------------------------------------------------------

ip.js:1567 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
(anonymous) @ ip.js:1567
ip.js:1568 falling back to ArrayBuffer instantiation
(anonymous) @ ip.js:1568
**_ip.js:1959 Hostname: emscripten
ip.js:1959 Host IP: 172.29.1.0_**

![屏幕快照 2020-11-21 下午12 59 50](https://user-images.githubusercontent.com/20061689/99867991-7a154f00-2bf9-11eb-9ac4-56446d521c67.png)
------------------------------------------------------------------------------

any clues ?

check for C file or emscripten ?

Thanks in advance!

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.