Fatal error on object creation with incorrect number of parameters.
3 views
Skip to first unread message
mcot
unread,
Dec 17, 2010, 9:45:01 PM12/17/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyV8
import PyV8
class Test2(PyV8.JSClass):
def __init__(self, param):
self.param = param
class Global(PyV8.JSClass):
def __init__(self):
self.Test2 = Test2
with PyV8.JSContext(Global()) as ctx:
ctx.eval("""
x = new Test2();
""")
This is giving me:
terminate called after throwing an instance of
'boost::python::error_already_set'
Aborted
And terminating the entire process.
Looks like it should send JavaScript undefined, which translates to
Python None?? (I'm not sure) to each of the params instead but I am
not sure how doable that is. I think just a exception would be fine
here, but the boost error that terminates the process is killer.
On Dec 18, 11:32 am, Flier Lu <flier...@gmail.com> wrote:
> It caused by a NULL pointer, please verify the issue with SVN trunk
> after r315.
>
> And I have submitted a issue #65 to follow up it
>