Comment #5 on issue 3536 by [email protected]: Array.prototype.{every,
filter, find, findIndex, forEach, map, some}: Use fresh primitive wrapper
for calls
https://code.google.com/p/v8/issues/detail?id=3536#c5
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae
commit e216ab1d40068a01a7f86146db2f6d81244bd0ae
Author: [email protected] <[email protected]>
Date: Wed Oct 15 09:11:32 2014
Array.prototype.{every, filter, find, findIndex, forEach, map, some}: Use
fresh primitive wrapper for calls.
When the receiver is a primitive value, it's cast to an Object before
entering the loop. Instead, it should be cast to an Object for each
function call while in the loop.
BUG=v8:3536
LOG=Y
[email protected], [email protected], [email protected]
Review URL: https://codereview.chromium.org/553413002
Patch from Diego Pino <[email protected]>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24620
ce2b1a6d-e550-0410-aec6-3dcde31c8c00
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/src/array.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/src/collection.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/src/harmony-array.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/src/macros.py
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/test/mjsunit/array-iteration.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/test/mjsunit/es6/collections.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/test/mjsunit/harmony/array-find.js
[modify]
https://chromium.googlesource.com/v8/v8.git/+/e216ab1d40068a01a7f86146db2f6d81244bd0ae/test/mjsunit/harmony/array-findindex.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.