New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 712170 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue v8:4953
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

subclass of TypedArray returns TypedArray in subarray()

Reported by petamori...@gmail.com, Apr 17 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
see https://codepen.io/petamoriken/pen/BRNvxr/?editors=0010

What is the expected behavior?
myArr.subarray() returns MyUint8Array.

What went wrong?
myArr.subarray() returns Uint8Array.

Did this work before? N/A 

Chrome version: 57.0.2987.133  Channel: stable
OS Version: OS X 10.12.4
Flash Version:
 
Labels: Needs-Triage-M59 Needs-Bisect
Tested the issue on Mac 10.12.4 using latest stable 57.0.2987.133 and could not reproduce the issue. Could you please review the attached screenshot and let us know if any steps missed from our side.
Screen Shot 2017-04-18 at 3.42.42 PM.png
281 KB View Download
Labels: Needs-Feedback
console.log should be like below (But Firefox show us Uint8Array instead of MyUint8Array, it's no problem).

MyUint8Array
true
MyUint8Array
true

スクリーンショット 2017-04-18 19.45.32.png
354 KB View Download
スクリーンショット 2017-04-18 19.44.57.png
245 KB View Download
スクリーンショット 2017-04-18 19.46.12.png
443 KB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Apr 18 2017

Cc: sandeepkumars@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by bokan@chromium.org, Apr 19 2017

Components: -Blink Blink>JavaScript
Labels: -Needs-Bisect -OS-Mac OS-All
Status: Untriaged (was: Unconfirmed)
This does indeed differ from Firefox. Over to V8 team to investigate further. -Needs-Bisect since it's not clear its a regression.
Components: -Blink>JavaScript Blink>JavaScript>Language
Owner: adamk@chromium.org
Status: Assigned (was: Untriaged)
Adam, what is the correct behavior?

Comment 8 by adamk@chromium.org, Apr 20 2017

Mergedinto: v8:4953
Status: Duplicate (was: Assigned)

Sign in to add a comment