3dgen / cppwasm-book

:books: WebAssembly friendly programming with C/C++ -- Emscripten practice
1.35k stars 166 forks source link

this function has been removed - you should use UTF8ToString(ptr, maxBytesToRead) instead! 文中使用的方法已经被移除了! #14

Open Mrooze-zeng opened 4 years ago

Mrooze-zeng commented 4 years ago

this function has been removed - you should use UTF8ToString(ptr, maxBytesToRead) instead! hello.js:2400 this function has been removed - you should use UTF8ToString(ptr, maxBytesToRead) instead! abort @ hello.js:2400 Pointer_stringify @ hello.js:806 Module.onRuntimeInitialized @ app.js:3 doRun @ hello.js:2309 run @ hello.js:2326 runCaller @ hello.js:2275 removeRunDependency @ hello.js:1535 receiveInstance @ hello.js:1653 receiveInstantiatedSource @ hello.js:1670 Promise.then (async) (anonymous) @ hello.js:1691 Promise.then (async) instantiateAsync @ hello.js:1689 createWasm @ hello.js:1716 Module.asm @ hello.js:1740 (anonymous) @ hello.js:2082 app.js:6 Uncaught (in promise) abort(this function has been removed - you should use UTF8ToString(ptr, maxBytesToRead) instead!) at Error at jsStackTrace (http://127.0.0.1:8080/output/hello.js:1808:17) at stackTrace (http://127.0.0.1:8080/output/hello.js:1825:16) at abort (http://127.0.0.1:8080/output/hello.js:2406:44) at Pointer_stringify (http://127.0.0.1:8080/output/hello.js:806:3) at Object.Module.onRuntimeInitialized (http://127.0.0.1:8080/app.js:3:3) at doRun (http://127.0.0.1:8080/output/hello.js:2309:71) at run (http://127.0.0.1:8080/output/hello.js:2326:5) at runCaller (http://127.0.0.1:8080/output/hello.js:2275:19) at removeRunDependency (http://127.0.0.1:8080/output/hello.js:1535:7) at receiveInstance (http://127.0.0.1:8080/output/hello.js:1653:5) Module.onRuntimeInitialized @ app.js:6 doRun @ hello.js:2309 run @ hello.js:2326 runCaller @ hello.js:2275 removeRunDependency @ hello.js:1535 receiveInstance @ hello.js:1653 receiveInstantiatedSource @ hello.js:1670 Promise.then (async) (anonymous) @ hello.js:1691 Promise.then (async) instantiateAsync @ hello.js:1689 createWasm @ hello.js:1716 Module.asm @ hello.js:1740 (anonymous) @ hello.js:2082