[quickjs-devel] Re: [proposal] add access functions to runtime opaque data

  • From: Fabrice Bellard <fabrice@xxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Mon, 23 Sep 2019 19:17:18 +0200

OK, the functions will be added ASAP.

Best regards,

Fabrice.

On 9/19/19 8:45 PM, Mario Gliewe wrote:

Hi,

while I can submit opaque data to the JS_NewRuntime2() function, I
cannot retrieve this data later on via API call.

I would propose some JS_GetRuntimeOpaque()/JS_SetRuntimeOpaque()
functions to avoid future incompatibilities when trying to directly
access the internal JSRuntime fields.

greets maG




Other related posts: