PetterS / quickjs

Thin Python wrapper of https://bellard.org/quickjs/
https://github.com/bellard/QuickJS
MIT License
177 stars 19 forks source link

Move ContextData to RuntimeData #92

Closed qwenger closed 2 years ago

qwenger commented 2 years ago

Some attributes of the data are more logically linked to the runtime rather than the context, even though we currently always have them 1:1.

Store the RuntimeData in the runtime's opaque rather than the context's. This will be useful later e.g. when using QuickJS function finalizers where we have access to the runtime, but not to the context.

Rename internals; for compatibility, keep the name Context on Python's side for now.