Issue metadata
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?
,
Aug 24 2016
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.
,
Aug 30 2016
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
,
Aug 30 2016
,
Aug 30 2016
I think this was fixed a while ago. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by dglazkov@chromium.org
, Aug 24 2016