--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
uncaught exception: abort({}) at jsStackTrace@http://127.0.0.1:8080/gdx-wasm.js:1:33098
stackTrace@http://127.0.0.1:8080/gdx-wasm.js:1:33269
abort@http://127.0.0.1:8080/gdx-wasm.js:1:333639
doNativeWasm/<@http://127.0.0.1:8080/gdx-wasm.js:1:46926To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.
#include <emscripten/bind.h>
#include <iostream>
static void hello() {
std::cout << "Hello wasm\n";
}
EMSCRIPTEN_BINDINGS(asmerror) {
emscripten::function("hello", &hello);
}<!doctype html>
<html>
<head><meta charset="UTF-8"></head>
<body>
<script type="text/javascript" src="asmerror.js"></script>
<script type="text/javascript">
var Module = {
print: function(text) { console.log(text); },
printErr: function(text) { console.error(text); },
onRuntimeInitialized: function() {
console.log("onRuntimeInitialized");
Module.hello();
}
};
</script>
</body>
</html><!doctype html>
<html>
<head><meta charset="UTF-8"></head>
<body>
<script type="text/javascript">
var Module = {
print: function(text) { console.log(text); },
printErr: function(text) { console.error(text); },
onRuntimeInitialized: function() {
console.log("onRuntimeInitialized");
Module.hello();
}
};
</script>
<script type="text/javascript" src="asmerror.js"></script>
</body>
</html>cmake_minimum_required(VERSION 3.0)project(asmerror)set(CMAKE_CXX_STANDARD 11)set(CMAKE_CXX_EXTENSIONS OFF)find_program (EMCC emcc)if (NOT EMCC) message(FATAL_ERROR "Could not find emcc executable")endif ()
add_library(asmerror SHARED asmerror.cpp)
set_target_properties(asmerror PROPERTIES SUFFIX .bc)
get_target_property(WASM_DIR asmerror ARCHIVE_OUTPUT_DIRECTORY)get_target_property(WASM_MODULE asmerror OUTPUT_NAME)
add_custom_command(TARGET asmerror POST_BUILD COMMAND ${EMCC} ARGS -O3 -s WASM=1 -s TOTAL_MEMORY=96468992 -s DISABLE_EXCEPTION_CATCHING=0 -s ASSERTIONS=1 --llvm-lto 1 --bind $<TARGET_FILE:asmerror> -o $<TARGET_FILE_DIR:asmerror>/asmerror.js BYPRODUCTS ${CMAKE_BINARY_DIR}/asmerror.js ${CMAKE_BINARY_DIR}/asmerror.wasm COMMENT "Generating webassembly")> email to emscripten-discuss+unsub...@googlegroups.com.
> email to emscripten-discuss+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.