New issue
Advanced search Search tips

Issue 726365 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

String iterator doesn't handle lone surrogates correctly

Reported by mfica...@shapesecurity.com, May 25 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Array.from('\xD800\xD800')

What is the expected behavior?
['\xD800', '\xD800']

What went wrong?
Returned ['Ø', '0', '0', 'Ø', '0', '0'].

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: stable
OS Version: Fedora 25
Flash Version: N/A

Notice that '\xD800\xD800' is not a valid surrogate pair. For these code units, a single-code-unit string should be produced by the iterator. See https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
 
Cc: ligim...@chromium.org
Labels: Needs-Triage-M58 Needs-Bisect Needs-Feedback
Could you please provide a sample testcase for the ease of triaging.
The sample test case is in the original message.
Project Member

Comment 3 by sheriffbot@chromium.org, May 25 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ligimole@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
Cc: rbasuvula@chromium.org
Labels: -Needs-Bisect M-60 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Tested the issue on chrome Stable #58.0.3029.110, Canary 60.0.3111.0 in Ubuntu 14.04 and was able to reproduce the issue.
Observations:
M30-M44 : Array.from function is not available. Console displaying a error message.
M45-M60 : Returned ['Ø', '0', '0', 'Ø', '0', '0'].
Please find the screen shot for reference(Win & Linux)

This is a Non-Regression issue since seeing this from M45 #45.0.2454.0, Making the status to Untriaged so that the issue would get addressed.

Note : Able to reproduce the issue in Win 10.0 and Mac 10.12.4.

Thank you.

Attachment..
726365.png
406 KB View Download
Please close. I meant to use Array.from('\uD800\uD800'). Doing too much PureScript lately.
Status: WontFix (was: Untriaged)
Closing per comment 6

Sign in to add a comment