You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varc=0;[].map.call({getlength(){c++;return0}},isNaN);c;// => 2, should be 1 varO={length: Math.pow(2,32)+1};O[Math.pow(2,32)]=42;[].forEach.call(O,console.log,console);// => nothing, should be 42, 4294967296, O
To fix both of these, instead of calling the native methods (in the scenario where the native methods behave incorrectly for negative and over-32-bit-length array-like objects), we need to reimplement all of them in their entirety. The ideal way to do this is to require in the implementations from the es5-shim, rather than duplicating all of the tests and code.
The text was updated successfully, but these errors were encountered:
Originally part of #341.
To fix both of these, instead of calling the native methods (in the scenario where the native methods behave incorrectly for negative and over-32-bit-length array-like objects), we need to reimplement all of them in their entirety. The ideal way to do this is to
require
in the implementations from thees5-shim
, rather than duplicating all of the tests and code.The text was updated successfully, but these errors were encountered: