sanyaade-g2g-repos / skulpt

Automatically exported from code.google.com/p/skulpt
Other
0 stars 0 forks source link

Skulpt chokes on __proto__ as a key. #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code you're trying to run:
>>> d = {}
>>> d["__proto__"]="testing"
>>> print d

What does "real" Python output?
{'__proto__': 'testing'}

What browser are you using? On what operating system?
Browser-independent

Please provide any additional information.
One solution might be to prefix all object keys with something (a dollar sign?)

Original issue reported on code.google.com by carnioja...@gmail.com on 8 Jan 2011 at 4:11

GoogleCodeExporter commented 9 years ago
Fixed at HEAD, thanks for the report.

Original comment by sgraham on 13 Jan 2011 at 6:52