PetterS / quickjs

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

context_set: check for JS_SetPropertyStr return value. #56

Closed qwenger closed 3 years ago

qwenger commented 3 years ago

Follow-up of #55, checking for errors in JS_SetPropertyStr.

Currently uses PyExc_TypeError; not sure that it is the most sensible choice, but merely doing the same as in context_add_callable...