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

Issue 19210002: Throw if first argument to TypedArray.set is a number. (Closed)

Created:
7 years, 5 months ago by Dmitry Lomov (no reviews)
Modified:
7 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Throw if first argument to TypedArray.set is a number. Further refinement to semantics that I have missed in previous change. Both Blink and Firefox are permissive with arguments to .set method. However, when first argument to "set" is a number, all implementations throw, so that users know that a.set(0,27) does not assign 27 to 0th element of a, not 0 to 27th element of a. R=bmeurer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15684

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M src/typedarray.js View 1 chunk +6 lines, -0 lines 1 comment Download
M test/mjsunit/external-array.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/external-array-no-sse2.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/typedarrays.js View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Dmitry Lomov (no reviews)
Another one of those thousand cuts.
7 years, 5 months ago (2013-07-15 14:59:08 UTC) #1
Benedikt Meurer
LGTM with comment https://codereview.chromium.org/19210002/diff/1/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/19210002/diff/1/src/typedarray.js#newcode157 src/typedarray.js:157: if (IS_NUMBER(obj)) This if is missing ...
7 years, 5 months ago (2013-07-16 05:39:56 UTC) #2
Dmitry Lomov (no reviews)
7 years, 5 months ago (2013-07-16 08:11:41 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r15684 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698