Closed GoogleCodeExporter closed 9 years ago
Could you reproduce the issue in the SVN build, or attach your test.py? Because
I
can't reproduce it with latest code.
D:\Python\pyjamas\pyv8>echo print "hello" > test.py
D:\Python\pyjamas\pyv8>pyv8run.py test.py
hello
Original comment by flier...@gmail.com
on 25 Jun 2009 at 4:31
test.py:
from fred import fred
fred()
fred.py:
class fred:
def __init__(self):
print "this doesn't work"
i'll try latest svn, it'll be later - i packed my 32-bit machine for the
conference.
Original comment by luke.lei...@gmail.com
on 25 Jun 2009 at 4:37
It seems caused by a missing attribute :(
>>> ctxt.eval(code)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
PyV8.JSError: JSError: undefined ( @ 1055 : 4 ) -> throw e.__name__;
I think the root cause is that you guys using function prototype, but pyv8
doesn't
have a full feature unit tests cover it :(
pyjslib.StopIteration = function () { };
pyjslib.StopIteration.prototype = new Error();
pyjslib.StopIteration.__name__ = 'StopIteration';
pyjslib.StopIteration.message = 'StopIteration';
I will check it in weekend, wish it is not too complex :S
Original comment by flier...@gmail.com
on 25 Jun 2009 at 5:06
Original issue reported on code.google.com by
luke.lei...@gmail.com
on 24 Jun 2009 at 9:06