marylinh / pyv8

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

Crash with a snippet from prototype.js #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Python is crashing evaluating 'prototype.js' (with my 'GlobalObject'). I've
attached a script to reproduce the crash.

What version of the product are you using? On what operating system?
- PyV8-0.9.win32-py2.6.exe on Windows Vista
- PyV8 rev. 246 compiled for Python 2.5 on Windows Vista

Original issue reported on code.google.com by mmura...@dieresys.com.ar on 7 Apr 2010 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 8 Apr 2010 at 2:00

GoogleCodeExporter commented 9 years ago
The root cause is CJavascriptObject::Dump doesn't handle the empty object, when 
toString of Element.ClassNames.prototype raise a exception, Dump method will 
crash 
because the returned empty object can't be convert to string.

Just check the situation, and use the build-in toString when customized 
toString 
failed.

Please verify the issue with SVN code after r252

Original comment by flier...@gmail.com on 8 Apr 2010 at 5:05

GoogleCodeExporter commented 9 years ago
Verified, thanks!

Original comment by mmura...@dieresys.com.ar on 8 Apr 2010 at 6:52

GoogleCodeExporter commented 9 years ago
You are welcome :)

Original comment by flier...@gmail.com on 9 Apr 2010 at 1:21