emscripten-core / emscripten-core/emscripten

the disadvantages of for...in... when the array prototype adds methods

Open
#14,822 0 comments 0 reactions 0 assignees View on GitHub
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

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.