dukpy
dukpy copied to clipboard
Why the context is not saved?
See what I do in the screenshot, I definded a class in es5js
and then call evaljs
the first time, everything seems OK.
But when I tried to used the persistent instants, got identifier 'udm' undefined
.
The strange things is, the code I pasted from document works well.
Is it a bug?
I noticed you create a new interpreter instance after setting things in the first one. Maybe the second interpreter is messing some global state of the first interpreter, I'll try to reproduce the issue.
the second interpreter is just for test. I add it after I got the error.
I also ran into this problem, functions aren't properly saved in the context EDIT: it works now wtf???