dukpy icon indicating copy to clipboard operation
dukpy copied to clipboard

Why the context is not saved?

Open PaleNeutron opened this issue 6 years ago • 3 comments

Imgur

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?

PaleNeutron avatar Apr 30 '18 14:04 PaleNeutron

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.

amol- avatar Apr 30 '18 15:04 amol-

the second interpreter is just for test. I add it after I got the error.

PaleNeutron avatar Apr 30 '18 15:04 PaleNeutron

I also ran into this problem, functions aren't properly saved in the context EDIT: it works now wtf???

kelvinwop avatar Dec 10 '20 22:12 kelvinwop