New issue
Advanced search Search tips

Issue 813374 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Symbol-keyed property values have two "Store as global variable" menu items that do different things

Reported by nfd...@gmail.com, Feb 17 2018

Issue description

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

Steps to reproduce the problem:
1. Open DevTools
2. Input {[Symbol('test')]: Object} and press enter.
3. Click the disclosure triangle to expand the object in the console.
4. Right-click on the word "Object"

What is the expected behavior?
The menu should include "Store key as global variable" and "Store value as global variable" to indicate what is being stored

What went wrong?
The menu has two identical-looking items—both say "Store as global variable"—that do different things: the upper one stores the property's Symbol key as a global variable, and the lower one stores the property's function value as a global variable.

It is impossible to distinguish these menu items without clicking on them to see what they do.

Did this work before? No 

Chrome version: 66.0.3350.0  Channel: canary
OS Version: OS X 10.13.3
Flash Version:
 
screenshot.png
76.9 KB View Download
Labels: Needs-Triage-M66
Labels: Triaged-ET M-66 FoundIn-66 Target-66 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #66.0.3350.0
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Comment 3 by alph@chromium.org, Mar 3 2018

Owner: l...@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 by l...@chromium.org, Mar 3 2018

Thanks for the report.  I can reproduce, interesting find!

Sign in to add a comment