DescriptionArray.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
R=arv@chromium.org, svenpanne@chromium.org, wingo@igalia.com
Committed: https://code.google.com/p/v8/source/detail?r=24620
Patch Set 1 #Patch Set 2 : Apply same changes to MapForEach and SetForEach #
Total comments: 15
Patch Set 3 : Created wrapper. Added tests for strict mode. Fixed nits. #
Total comments: 8
Patch Set 4 : Fix last issues. #
Total comments: 4
Patch Set 5 : Fixed last issues #
Total comments: 1
Patch Set 6 : Remove unnecessary is_null_or_undefined check #
Total comments: 3
Patch Set 7 : Fixed nits from last patch. #
Messages
Total messages: 30 (4 generated)
|