Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Issue 2091153002: TypedArray.prototype.set uses internal length property, not real one. (Closed)

Created:
4 years, 6 months ago by bakkot
Modified:
4 years, 6 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

TypedArray.prototype.set uses internal length property, not real one. TypedArrays store their true length in an internal slot. This is normally reflected in the .length property, but that property is configurable. Algorithms which need the length of a typed array are to use the internal slot, not the property; TypedArray.prototype.set was not doing this. BUG=v8:5133 Committed: https://crrev.com/9f2a18b729d604b27f7aa1ce6bf44e1452690baa Cr-Commit-Position: refs/heads/master@{#37232}

Patch Set 1 #

Total comments: 2

Patch Set 2 : shorter lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -7 lines) Patch
M src/js/typedarray.js View 1 4 chunks +5 lines, -4 lines 0 comments Download
A test/mjsunit/es6/typedarray-set-length-internal.js View 1 1 chunk +35 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
bakkot
4 years, 6 months ago (2016-06-23 22:10:39 UTC) #3
Dan Ehrenberg
Looks good, just a nit pick https://codereview.chromium.org/2091153002/diff/1/src/js/typedarray.js File src/js/typedarray.js (right): https://codereview.chromium.org/2091153002/diff/1/src/js/typedarray.js#newcode416 src/js/typedarray.js:416: TypedArraySetFromArrayLike(this, obj, %_TypedArrayGetLength(obj), ...
4 years, 6 months ago (2016-06-23 22:12:40 UTC) #4
bakkot
https://codereview.chromium.org/2091153002/diff/1/src/js/typedarray.js File src/js/typedarray.js (right): https://codereview.chromium.org/2091153002/diff/1/src/js/typedarray.js#newcode416 src/js/typedarray.js:416: TypedArraySetFromArrayLike(this, obj, %_TypedArrayGetLength(obj), intOffset); On 2016/06/23 22:12:40, Dan Ehrenberg ...
4 years, 6 months ago (2016-06-23 22:17:46 UTC) #5
Dan Ehrenberg
lgtm
4 years, 6 months ago (2016-06-23 22:30:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2091153002/20001
4 years, 6 months ago (2016-06-23 22:30:54 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-23 22:58:13 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 23:00:38 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9f2a18b729d604b27f7aa1ce6bf44e1452690baa
Cr-Commit-Position: refs/heads/master@{#37232}

Powered by Google App Engine
This is Rietveld 408576698