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

Issue 640632 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 636409
Owner:
Last visit > 30 days ago
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Javascript console stops working when a variable with the name Map is present

Reported by rob...@precisonline.com, Aug 24 2016

Issue description

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

Steps to reproduce the problem:
1. Create two files. One, a javascript file named Map.js with the following code

var Map = (function(){}());

and an html file that contains this code

<!DOCTYPE html>
<html>
<head>
    <script src="Map.js" type="text/javascript"></script>
</head>

<body>
</body>
</html>

2.  Open the html file and attempt to use the javascript console.

What is the expected behavior?
Console works as normal.

What went wrong?
Console stops working, no javascript code is executed and no error is displayed.

Did this work before? N/A 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 22.0 r0

Possibly caused by a conflict with the ES6 Map class?
 
Labels: Needs-Feedback
I am having problems reproducing this issue. What exactly stops working? Maybe a screenshot would be helpful.
1. Open console
2. Execute this code: var Map = (function(){}());
3. Close console
4. Open console
5. Try to execute any code. Example: console.log("test")
   It won't work, nothing is executed, no error displayed.
Cc: dgozman@chromium.org
dgozman@ is this expected?

I can reproduce as what #2 indicates. And debugging the devtools extension yields:

Internal error

Callback @ inspector.js:6316
callback @ inspector.js:4332
dispatchResponse @ inspector.js:4339
dispatch @ inspector.js:4289
dispatchMessage @ inspector.js:10291
dispatchEventToListeners @ inspector.js:770
innerDispatch @ inspector.js:1532_
dispatch @ inspector.js:1531_
dispatchOnInspectorFrontendAPI @ VM38:61
dispatchMessage @ VM38:146
(anonymous function) @ VM314:1
Labels: -Needs-Feedback
Mergedinto: 636409
Owner: kozyatinskiy@chromium.org
Status: Duplicate (was: Unconfirmed)
I think this was fixed a while ago.

Sign in to add a comment