denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.04k stars 5.23k forks source link

Extension/runtime code can't rely on arrays being iterable #11682

Open andreubotella opened 3 years ago

andreubotella commented 3 years ago
delete Array.prototype[Symbol.iterator];
error: Uncaught TypeError: allMembers is not iterable
    at <anonymous> (deno:extensions/webidl/00_webidl.js:739:28)

The above code is all that's needed in a script to trigger this exception, no usage of arrays needed at all. The error is probably thrown when firing the load event; see also https://github.com/denoland/deno/issues/11677#issuecomment-898254299

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.