-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Resolves #1391: Implement TypedArray updates to index handling. #2289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolves #1391: Implement TypedArray updates to index handling. #2289
Conversation
|
Hi @atulkatti, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
|
@Microsoft/chakra-developers |
| } | ||
|
|
||
| print("set little endian value offset " + offSet + " value " + value + " method " + setFuncs[i]); | ||
| print("set big endian value offset " + offSet + " value " + value + " method " + setFuncs[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can ignore the changes to dataview.js, dataview.baseline and samethread.baseline. I fixed this typo in the comments of this test and that caused a lot of changes to the baseline. No other changes to these files.
|
Make sure to prefix the issue number with # so it triggers GitHub to link them. |
| newByteLength = mappedLength * elementSize; | ||
|
|
||
| if ((uint32)mappedLength > (byteLength - offset)/ elementSize) | ||
| if (offset + newByteLength > byteLength) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which case was this fixing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a slight change in the spec while reviewing the indexing related changes. Please refer to the spec at https://tc39.github.io/ecma262/#sec-typedarray-buffer-byteoffset-length section 22.2.4.5 step 12.
|
@boingoing please take a look |
|
@atulkatti please run buddy testing as per the email I sent |
|
(Reverted by #2350) |
Resolves #1391: Implement TypedArray updates to index handling.