NeilFraser / JS-Interpreter

A sandboxed JavaScript interpreter in JavaScript.
Apache License 2.0
1.98k stars 353 forks source link

Check for valid lengths on array functions #208

Closed NeilFraser closed 3 years ago

NeilFraser commented 3 years ago

Fixes #207

NeilFraser commented 3 years ago

Abandoning this PR on the basis that an array of maximum length will still block the interpreter for several minutes. Still better than infinity, but not good enough. Need to use polyfills instead.