sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Hanging browser when parsing dict initialisation with commented line #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In console (Firefox 17.0.1 Linux) (notice the commented line is done on purpose)
d = {
1 : 1
, 2 : 2
#, 3 : 3
, 4 : 4
} 

Result:
Browser hangs on some infinite loop for a while and then reports:
"""
A script on this page may be busy, or it may have stopped responding. You can 
stop the script now, open the script in the debugger, or let the script 
continue.

Script: http://www.brython.info/py_utils.js:221
"""

Original issue reported on code.google.com by pedro.ro...@gmail.com on 2 Jan 2013 at 9:39

GoogleCodeExporter commented 9 years ago
Fixed in revision 324 (there was a bug in py_tokeniser.js for comments inside a 
bracketed expression)

Original comment by pierre.q...@gmail.com on 3 Jan 2013 at 10:38