emscripten-core / emscripten-core/emscripten
the disadvantages of for...in... when the array prototype adds methods
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
when i compile the C code to .js/.wasm/.worker.js by Emscripten , in the .js file ,there are lots of `for (key in Module)` , but the third party product business added a method to the Array data prototype, causing an internal error when the for in loop was traversed by the method.
So is it possible to put `for...in...` Instead of `for each`, what should I do to make the change?
Contributor guide
Assessment
This issue has not been assessed yet.