Closed GoogleCodeExporter closed 9 years ago
The issue was caused by a wrong assumption, because the compile and eval
method of JSEngine need a entered context; so, if you directly call those
methods,
it will crash in release mode and hit a assert in debug mode.
http://code.google.com/p/pyv8/source/detail?r=125
Now, I change the code to throw a exception instead of 'Segmentation fault'
Please ensure you have enter a context before use the JSEngine, or directly use
JSContext as delegate
>>> import PyV8
>>> ctxt = PyV8.JSContext() # create a context with an implicit global
object
>>> ctxt.enter() # enter the context (also support with
statement)
Original comment by flier...@gmail.com
on 20 Jun 2009 at 3:44
Original issue reported on code.google.com by
cornelis...@gmail.com
on 20 Jun 2009 at 12:39